fix: Change size option on resize only once

This commit is contained in:
sthag 2026-03-01 22:19:19 +01:00
parent 6a574d92c2
commit a1aae6a902

View file

@ -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';