From a1aae6a90201f16e892f4d7c71b1ed0fc2424df2 Mon Sep 17 00:00:00 2001 From: sthag Date: Sun, 1 Mar 2026 22:19:19 +0100 Subject: [PATCH] fix: Change size option on resize only once --- source/screens/demo/examples/clock.liquid | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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';