diff --git a/source/screens/demo/examples/clock.liquid b/source/screens/demo/examples/clock.liquid index 4d581b9..1b1e689 100644 --- a/source/screens/demo/examples/clock.liquid +++ b/source/screens/demo/examples/clock.liquid @@ -58,9 +58,8 @@ tags: } #resize() { + this.updateOptions({size: Math.floor(this.getSize().value * 0.9)}); this.parts.forEach(part => { - this.updateOptions({size: Math.floor(this.getSize().value * 0.9)}) - if (part.name === 'wrap') { part.element.style.height = this.options.size + 'px'; part.element.style.width = this.options.size + 'px';