From d2461a225ef1939e2761a6345a21b223ded93262 Mon Sep 17 00:00:00 2001 From: Laura Fuentes Grau Date: Sat, 30 Jan 2021 18:41:25 +0100 Subject: [PATCH] Time Offset Widget: widget changes size continuously during resizing --- src/styles/widgets.css | 2 ++ src/widget/widget-factory.js | 1 + 2 files changed, 3 insertions(+) diff --git a/src/styles/widgets.css b/src/styles/widgets.css index 06032c2..6f91c0e 100644 --- a/src/styles/widgets.css +++ b/src/styles/widgets.css @@ -398,6 +398,8 @@ div[class*="-widget"] label { /* Begin time offset widget */ .time-offset { + width: 100%; + height: 100%; display: flex; align-items: center; justify-content: space-around; diff --git a/src/widget/widget-factory.js b/src/widget/widget-factory.js index f3c804e..ed04630 100644 --- a/src/widget/widget-factory.js +++ b/src/widget/widget-factory.js @@ -168,6 +168,7 @@ class WidgetFactory { widget.customProperties.valueMin = 0; widget.customProperties.valueMax = 1; widget.customProperties.valueUseMinMax = false; + widget.customProperties.lockAspect = true; break; case 'Box': widget.minWidth = 50;