Quellcode durchsuchen

improve the Popup config

tags/2.6.1
Caven Chen vor 4 Jahren
Ursprung
Commit
5ad46640d3
1 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen
  1. 7
    7
      modules/widget/type/Popup.js

+ 7
- 7
modules/widget/type/Popup.js Datei anzeigen

@@ -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 = `

Laden…
Abbrechen
Speichern