From 5d8b0e00ed477c9bbf581ed4fe47065d57df0104 Mon Sep 17 00:00:00 2001 From: Laura Fuentes Grau Date: Thu, 7 May 2020 15:19:03 +0200 Subject: [PATCH] Lamp widget now displayed correctly during/after resizing in layout mode --- src/styles/widgets.css | 9 +++++++++ src/widget/widgets/lamp.js | 2 -- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/styles/widgets.css b/src/styles/widgets.css index 33e03f0..5d92aa8 100644 --- a/src/styles/widgets.css +++ b/src/styles/widgets.css @@ -265,6 +265,15 @@ span.signal-unit::after { /* End button widget styling */ +/*Lamp Widget styling*/ + +.lamp-widget { + width: 100%; + height: 100%; +} + +/* End lamp widget styling*/ + .full { width: 100%; height: 100%; diff --git a/src/widget/widgets/lamp.js b/src/widget/widgets/lamp.js index b9a9605..7a89c04 100644 --- a/src/widget/widgets/lamp.js +++ b/src/widget/widgets/lamp.js @@ -66,8 +66,6 @@ class WidgetLamp extends Component { let style = { backgroundColor: color, - width: this.props.widget.width, - height: this.props.widget.height } return (