Visual Console Client: minor fix

Former-commit-id: 72669991e04eaab039390cb612abd9bbc24cdfa9
This commit is contained in:
Alejandro Gallardo Escobar 2019-03-01 12:52:48 +01:00
parent 2854b59826
commit 8329e2f90e
1 changed files with 3 additions and 1 deletions

View File

@ -177,8 +177,10 @@ export default class Clock extends VisualConsoleItem<ClockProps> {
*/
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();
}
/**