From 992ca91e374d34895403b36baca968f959a741a7 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 7 Jan 2019 21:52:17 +0100 Subject: [PATCH] widget: geometry update mistake --- 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 87614304..5c2b0167 100644 --- a/src/client/app/widgets/common/widget.js +++ b/src/client/app/widgets/common/widget.js @@ -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') } }