This commit is contained in:
Orion Reed 2024-12-15 07:51:23 -05:00
parent cac972eaff
commit 769c9a5514
1 changed files with 2 additions and 13 deletions

View File

@ -493,19 +493,8 @@ export class FolkShape extends HTMLElement {
}
this.style.transform = emmittedRect.toCssString();
if (this.#attrWidth !== 'auto') {
this.style.width = `${emmittedRect.width}px`;
} else {
this.style.width = '';
emmittedRect.width = this.#previousRect.width;
}
if (this.#attrHeight !== 'auto') {
this.style.height = `${emmittedRect.height}px`;
} else {
this.style.height = '';
emmittedRect.height = this.#previousRect.height;
}
this.style.width = this.#attrWidth === 'auto' ? '' : `${emmittedRect.width}px`;
this.style.height = this.#attrHeight === 'auto' ? '' : `${emmittedRect.height}px`;
this.#readonlyRect = new DOMRectTransformReadonly(emmittedRect);
}