widget: geometry update mistake

This commit is contained in:
jean-emmanuel 2019-01-07 21:52:17 +01:00
parent 8c37b06060
commit 992ca91e37

View file

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