fix: Change size option on resize only once
This commit is contained in:
parent
6a574d92c2
commit
a1aae6a902
1 changed files with 1 additions and 2 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue