Bläddra i källkod

improve the Popup config

tags/2.6.1
Caven Chen 4 år sedan
förälder
incheckning
5ad46640d3
1 ändrade filer med 7 tillägg och 7 borttagningar
  1. 7
    7
      modules/widget/type/Popup.js

+ 7
- 7
modules/widget/type/Popup.js Visa fil

@@ -82,17 +82,17 @@ class Popup extends Widget {
let y = windowCoord.y - this._wrapper.offsetHeight

if (this._config.position === 'topleft') {
x = windowCoord.x
y = windowCoord.y
} else if (this._config.position === 'topright') {
x = windowCoord.x - this._wrapper.offsetWidth
y = windowCoord.y
} else if (this._config.position === 'bottomleft') {
y = windowCoord.y - this._wrapper.offsetHeight
} else if (this._config.position === 'topright') {
x = windowCoord.x
y = windowCoord.y - this._wrapper.offsetHeight
} else if (this._config.position === 'bottomright') {
} else if (this._config.position === 'bottomleft') {
x = windowCoord.x - this._wrapper.offsetWidth
y = windowCoord.y - this._wrapper.offsetHeight
y = windowCoord.y
} else if (this._config.position === 'bottomright') {
x = windowCoord.x
y = windowCoord.y
}

this._wrapper.style.cssText = `

Laddar…
Avbryt
Spara