widget: geometry update mistake
This commit is contained in:
parent
8c37b06060
commit
992ca91e37
1 changed files with 1 additions and 1 deletions
|
|
@ -785,7 +785,7 @@ class Widget extends EventEmitter {
|
|||
this.container.style[d] = geometry
|
||||
if (d === 'width') this.container.style.minWidth = geometry
|
||||
if (d === 'height') this.container.style.minHeight = geometry
|
||||
if (d === 'top' || d === 'left') this.container.classList.add('absolute-position')
|
||||
if (geometry && (d === 'top' || d === 'left')) this.container.classList.add('absolute-position')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue