From 89a54423afeb3255107b7d0609d9bc16cef60716 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 2 Apr 2019 09:40:46 +0200 Subject: [PATCH] widget: remove .absolute-position class when width/height is set to auto (#501) --- src/client/app/widgets/common/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/app/widgets/common/widget.js b/src/client/app/widgets/common/widget.js index bed08fae..ba034c5d 100644 --- a/src/client/app/widgets/common/widget.js +++ b/src/client/app/widgets/common/widget.js @@ -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')) } }