Repository navigation
Open
Labels
area/listview 📃Categorizes an issue or PR as relevant to the ListView controldifficulty/challenging 🤯Categorizes an issue for which the difficulty level is reachable with internals understandinghas-repro-branchkind/bugSomething isn't workingproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)project/layout 🧱Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
Description
Current behavior
When using the TwoPaneView control with GridView I noticed my button that is supposed to be always visible is rendered on the bottom on Uno platforms which should not happen and this behavior differs from WinUI.
This is how it currently looks on Android, notice I had to scroll down to see the Button
Expected behavior
On Windows the Button is always visible on the screen
How to reproduce it (as minimally and precisely as possible)
Workaround
No response
Works on UWP/WinUI
Yes
Environment
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia, Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
No response
Affected platforms
WebAssembly, Android, iOS, macOS (AppKit), Mac Catalyst, Skia (WPF), Skia (GTK on Linux/macOS/Windows), Skia (Linux Framebuffer)
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
Metadata
Metadata
Assignees
Labels
area/listview 📃Categorizes an issue or PR as relevant to the ListView controldifficulty/challenging 🤯Categorizes an issue for which the difficulty level is reachable with internals understandinghas-repro-branchkind/bugSomething isn't workingproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)project/layout 🧱Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)


Activity
morning4coffe-dev commentedon Oct 26, 2023
CC @MartinZikmund
Youssef1313 commentedon Oct 27, 2023
Have you tested Skia/Wasm?
morning4coffe-dev commentedon Oct 27, 2023
@Youssef1313 Yes, the issue is very similar there, but it seems like it is even a little worse as the GridView stretches the height of its items too
Youssef1313 commentedon Oct 27, 2023
I just tested and it's indeed very broken on Skia. I'll investigate.
Youssef1313 commentedon Oct 27, 2023
ItemsWrapGridis actually not implemented on Skia. The issue is still reproducible on Skia with StackPanel though.Youssef1313 commentedon Oct 27, 2023
Skia part (not including ItemsWrapGrid support) is being done in #14147.
test: Add repro tests for TwoPaneView infinite height (fixes #14133)
MartinZikmund commentedon Apr 20, 2026
Repro branch created: `dev/mazi/repro/14133`
Confirmed on Skia Desktop. Two runtime tests were added to `Given_TwoPaneView`, both failing as expected:
`When_TwoPaneView_In_Finite_Container_Pane1_Has_Finite_Height` — ListView inside a 400px TwoPaneView measures 4000px tall (100 items × 40px default height), indicating TwoPaneView passes an unconstrained/infinite height to its panes.
`When_TwoPaneView_Pane1_Sibling_Button_Is_Visible` — A Button placed below a ListView in Pane1's StackPanel is positioned at Y=4096px, well outside the TwoPaneView's 466px bounds.
Root cause: TwoPaneView does not constrain the height of its pane content during measure, passing an infinite available height instead of its own finite height.