widget: remove .absolute-position class when width/height is set to auto (#501)

This commit is contained in:
jean-emmanuel 2019-04-02 09:40:46 +02:00
parent 9ae47f7b2d
commit 2523bbf05c

View file

@ -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'))
}
}