Skip to content

fix(flyout): support dynamic heights on mobile devices#3528

Open
lubber-de wants to merge 4 commits into
fomantic:developfrom
lubber-de:flyoutContentHeight
Open

fix(flyout): support dynamic heights on mobile devices#3528
lubber-de wants to merge 4 commits into
fomantic:developfrom
lubber-de:flyoutContentHeight

Conversation

@lubber-de

@lubber-de lubber-de commented Jul 5, 2026

Copy link
Copy Markdown
Member

Description

Modern followup of #2644
This is now completely solvable via pure CSS, by using the "dvh" unit supporting dynamic view heights on mobile devices (which removes the address bar on scrolling which in turn changes the height)
The now unnecessary JS code, which would otherwise calculate wrong values for the min height, can be completely removed.
Same applies for fullscreen modal, so this PR adjusts this as well.

This a breaking change as it needs a modern browser (12/2022+, iOS15.4+) supporting the dvh unit
https://caniuse.com/?search=dynamic+viewport+units

Testcase

Try the fomantic docs site for flyout and run the first example on a mobile device. Then scroll up/down and the actions area gets too high.

@lubber-de lubber-de added this to the 2.10.0 milestone Jul 5, 2026
@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/css Anything involving CSS tag/breaking-change Any pull request which is waiting for a breaking change release labels Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/css Anything involving CSS tag/breaking-change Any pull request which is waiting for a breaking change release type/bug Any issue which is a bug or PR which fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant