Преглед на файлове

improve the Popup config

tags/2.6.1
Caven Chen преди 4 години
родител
ревизия
5ad46640d3
променени са 1 файла, в които са добавени 7 реда и са изтрити 7 реда
  1. 7
    7
      modules/widget/type/Popup.js

+ 7
- 7
modules/widget/type/Popup.js Целия файл

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

Loading…
Отказ
Запис