From 8329e2f90e519a40acda6a81f2701a31a9d5cf3c Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Fri, 1 Mar 2019 12:52:48 +0100 Subject: [PATCH] Visual Console Client: minor fix Former-commit-id: 72669991e04eaab039390cb612abd9bbc24cdfa9 --- visual_console/src/items/Clock.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/visual_console/src/items/Clock.ts b/visual_console/src/items/Clock.ts index eb96815dd9..0c5ab43428 100644 --- a/visual_console/src/items/Clock.ts +++ b/visual_console/src/items/Clock.ts @@ -177,8 +177,10 @@ export default class Clock extends VisualConsoleItem { */ public resize(width: number, height: number): void { super.resize(width, height); + // this.childElementRef.style.width = `${width}px`; + // this.childElementRef.style.height = `${height}px`; // Re-render the item to force it calculate a new font size. - this.render(); + if (this.props.clockType === "digital") this.render(); } /**