Skip to content

feat: use offsetHeight for canvasGeometry [SPA-2804]#1149

Merged
Maxim Cheremisin (maxcheremisin) merged 1 commit intov3-prereleasefrom
feat/use_offset_height_for_canvas_geometery
Jun 3, 2025
Merged

feat: use offsetHeight for canvasGeometry [SPA-2804]#1149
Maxim Cheremisin (maxcheremisin) merged 1 commit intov3-prereleasefrom
feat/use_offset_height_for_canvas_geometery

Conversation

@maxcheremisin
Copy link
Copy Markdown
Member

@maxcheremisin Maxim Cheremisin (maxcheremisin) commented Jun 3, 2025

Purpose

Use document.documentElement.offsetHeight instead of document.documentElement.scrollHeight.

When the node is removed, scrollHeight doesn’t change, and iframe height stays the same, because in the web app the iframe is stretched to 100% of the container that has the height based off the last iframe size.

@maxcheremisin Maxim Cheremisin (maxcheremisin) requested a review from a team as a code owner June 3, 2025 14:59
@vercel
Copy link
Copy Markdown

vercel bot commented Jun 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nextjs-marketing-demo-bug-test 🔄 Building (Inspect) Visit Preview Jun 3, 2025 2:59pm
3 Skipped Deployments
Name Status Preview Updated (UTC)
experience-builder-test-app ⬜️ Ignored (Inspect) Jun 3, 2025 2:59pm
studio-nextjs-marketing-demo ⬜️ Ignored (Inspect) Jun 3, 2025 2:59pm
studio-react-vite-template ⬜️ Ignored (Inspect) Jun 3, 2025 2:59pm

@Chaoste Thomas Kellermeier (Chaoste) changed the title feat: use offsetHeight for canvasGeometry [] feat: use offsetHeight for canvasGeometry [SPA-2804] Jun 3, 2025
@maxcheremisin Maxim Cheremisin (maxcheremisin) merged commit 6807858 into v3-prerelease Jun 3, 2025
17 checks passed
@maxcheremisin Maxim Cheremisin (maxcheremisin) deleted the feat/use_offset_height_for_canvas_geometery branch June 3, 2025 15:42
Thomas Kellermeier (Chaoste) added a commit that referenced this pull request Aug 6, 2025
* feat: introduce SDK capability dndMigration [SPA-2745] (#1134)

* feat: introduce SDK capability nativeDnd

* feat: rename flag to dndMigration

* chore: allow v3-prerelease branch for lerna publishing

* feat!: remove dnd [SPA-2803] (#1138)

* feat: introduce SDK capability dndMigration [SPA-2745] (#1134)

* feat: introduce SDK capability nativeDnd

* feat: rename flag to dndMigration

* feat: remove all code related to DND or any other canvas interaction

* feat: merge EditorBlock and useComponent

* feat: remove remaining DND code and make components render

* feat: remove to be deprecated messages

* fix: className render props order

* feat(visual-editor): Send CanvasGeometryUpdated Event [SPA-2804] (#1144)

* feat: add geometry update message

* feat: send canvasGeometry update at every possible DOM change

* style: split functions, simplify code, drop manual sourceEvent

* fix: to be safe fire trailing debounce message as well

* style: rename manuallyFireCanvasGeometryUpdate to sendCanvasGeometryUpdate

* fix: dont update manually but ensure observer stays active

* style: split resize and mutations into two separate effects

* fix: send message argument type

* fix: use message argument type

* feat: use offsetHeight for canvasGeometry [] (#1149)

* feat: listen to the entire html for canvas geometry, as there might be style changes only [SPA-2804] (#1155)

* feat: [] skip hidden nodes (#1193)

* fix: remove old PreviewUnboundImage and unnnecessary special casing (#1171)

* fix: remove falsly kept file from merge conflict

* fix: render empty carousel and containers with min width and height

* fix: correctly render editor attribets on CustomImage

* test: check created CSS code for merged pattern default

* fix: adjust test due to removed border-box rule on every node

* chore: remove v3 downstream CI updates as it didnt work anyways

* chore: [] send initial canvas geometry (#1219)

* fix: render cfVisibility in editor mode for CSR apps

* fix: mocks in tests

* fix: increase handshake timeout

* chore: remove special casing from lerna and CI config for v3 branch

---------

Co-authored-by: Maxim Cheremisin <maxcheremisin2008@gmail.com>
Thomas Kellermeier (Chaoste) added a commit that referenced this pull request Aug 6, 2025
…SPA-2744] (#1216)

* feat: introduce SDK capability dndMigration [SPA-2745] (#1134)

* feat: introduce SDK capability nativeDnd

* feat: rename flag to dndMigration

* chore: allow v3-prerelease branch for lerna publishing

* feat!: remove dnd [SPA-2803] (#1138)

* feat: introduce SDK capability dndMigration [SPA-2745] (#1134)

* feat: introduce SDK capability nativeDnd

* feat: rename flag to dndMigration

* feat: remove all code related to DND or any other canvas interaction

* feat: merge EditorBlock and useComponent

* feat: remove remaining DND code and make components render

* feat: remove to be deprecated messages

* fix: className render props order

* feat(visual-editor): Send CanvasGeometryUpdated Event [SPA-2804] (#1144)

* feat: add geometry update message

* feat: send canvasGeometry update at every possible DOM change

* style: split functions, simplify code, drop manual sourceEvent

* fix: to be safe fire trailing debounce message as well

* style: rename manuallyFireCanvasGeometryUpdate to sendCanvasGeometryUpdate

* fix: dont update manually but ensure observer stays active

* style: split resize and mutations into two separate effects

* fix: send message argument type

* fix: use message argument type

* feat: use offsetHeight for canvasGeometry [] (#1149)

* feat: listen to the entire html for canvas geometry [SPA-2804] (#1155)

* feat: [] skip hidden nodes (#1193)

* fix: remove old PreviewUnboundImage and unnnecessary special casing (#1171)

* fix: remove falsly kept file from merge conflict

* fix: render empty carousel and containers with min width and height

* fix: correctly render editor attribets on CustomImage

* test: check created CSS code for merged pattern default

* fix: adjust test due to removed border-box rule on every node

* chore: remove v3 downstream CI updates as it didnt work anyways

* chore: [] send initial canvas geometry (#1219)

* fix: render cfVisibility in editor mode for CSR apps

* fix: mocks in tests

* fix: increase handshake timeout

* chore: remove special casing from lerna and CI config for v3 branch

---------

Co-authored-by: Maxim Cheremisin <maxcheremisin2008@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants