Closed (fixed)
Project:
Experience Builder
Version:
1.x-dev
Component:
Page builder
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Jul 2025 at 14:11 UTC
Updated:
13 Aug 2025 at 13:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jessebaker commentedThis is technically a duplicate of #3518708: Components with height in VH can cause the preview iFrame to expand infinitely in height but as no solution for that has been put forward yet, perhaps we can put in a hard-coded Tailwind specific fix for this class name.
Comment #3
lauriiiComment #6
bnjmnmI have an MR that will work for h-screen and any other 100VH situation, but > 100 VH settings would still be an issue. On the plus side, this covers far more use cases than HEAD, even if some linger.
Comment #7
bnjmnmFound a way to handle any VH value, not just 100.
Comment #8
jessebaker commentedComment #9
jessebaker commentedIt seems like this issue is now the catch all for VH related issues. I've added two other more specific issues as related but I think they will be fixed by @bnjmnm's solution in the MR which is not specific to Tailwind classes.
Comment #10
bnjmnmComment #11
lauriiiTried to test this manually and ran into an error:
This is the component I tested with:
Comment #12
bnjmnmLooks like #11 was happening due to tailwind using colons in classnames. This has been addressed and a test was modified to include it as a use case.
Comment #13
bnjmnmThe change in Jesse's commit looks good - it's essentially the same logic as what it replaces, but uses information that was already in the component instead of having to perform additional steps to retrieve it. It seems OK if Jesse reviews the remainder of the MR.
Comment #14
bnjmnmComment #16
jessebaker commentedComment #17
mayur-sose commentedVerified below scenarios :
Open the preview in XB (so it is rendered in an iFrame).
The iFrame does not expand indefinitely.
No infinite scroll/bounce.
Set an element’s style to height: 100vh.
View in preview.
Inspect the preview iFrame’s height in browser developer tools while refreshing or saving.
Watch for rapid growth or scrollbars.
Visit the published front-end endpoint.
Observe page rendering.
No layout issues or infinite scrolling.
Preview page/component in XB.
Observe iFrame.
No compounding infinite growth.
Only one viewport height is used per section/component.
Preview component in iFrame.
Confirms bug is limited to vh unit usage.
Confirm usability.
Visible scroll area matches intended height.
Preview/save component.