widget: remove .absolute-position class when width/height is set to auto (#501)
This commit is contained in:
parent
3f1c4d03b3
commit
89a54423af
1 changed files with 1 additions and 1 deletions
|
|
@ -783,7 +783,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 (geometry && (d === 'top' || d === 'left')) this.container.classList.add('absolute-position')
|
||||
this.container.classList.toggle('absolute-position', geometry && (d === 'top' || d === 'left'))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue