Skip to content

Commit 0df3d7e

Browse files
committed
docs(studio): fold the resize note into the size-reapply comment
1 parent b07d91a commit 0df3d7e

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

‎packages/studio/src/components/editor/manualEditsDom.ts‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -567,14 +567,11 @@ function reapplyPathOffsets(doc: Document): void {
567567

568568
/**
569569
* Put the studio's committed size back after a seek, GSAP-sized elements included.
570-
*
571570
* Size does not compose the way the offset above does: both channels write width
572-
* and height, so the later write wins and both hold the same number. Standing
573-
* aside meant nothing held the size while a soft reload reverted the old timeline
574-
* — GSAP hands back each tween's recorded starting width — so until the new one
575-
* rendered, the element sat at its stylesheet size. That is the jump after a
576-
* resize, and the next gesture then started from a box disagreeing with these
577-
* vars and snapped on its first move. Only an element mid-edit carries them.
571+
* and height, so the later write wins on the same number. Standing aside meant
572+
* nothing held the size while a soft reload reverted the old timeline (GSAP hands
573+
* back each tween's recorded starting width), so the element sat at its stylesheet
574+
* size until the new one rendered — the jump after a resize.
578575
*/
579576
function reapplyBoxSizes(doc: Document): void {
580577
for (const el of queryStudioElements(doc, STUDIO_BOX_SIZE_ATTR)) {

0 commit comments

Comments
 (0)