Skip to content

TwoPaneView has infinite height #14133

Open
Open

Description

@morning4coffe-dev

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

image

Expected behavior

On Windows the Button is always visible on the screen

image

How to reproduce it (as minimally and precisely as possible)

https://github.com/morning4coffe-dev/uno-platform-testing/tree/doti/twopaneview-height

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

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    on Oct 26, 2023
  2. morning4coffe-dev commented on Oct 26, 2023

    @morning4coffe-dev
    MemberAuthor
  3. Youssef1313 commented on Oct 27, 2023

    @Youssef1313
    Member

    Have you tested Skia/Wasm?

  4. added
    project/layout 🧱
    on Oct 27, 2023
  5. morning4coffe-dev commented on Oct 27, 2023

    @morning4coffe-dev
    MemberAuthor

    @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

  6. self-assigned this
    on Oct 27, 2023
  7. Youssef1313 commented on Oct 27, 2023

    @Youssef1313
    Member

    I just tested and it's indeed very broken on Skia. I'll investigate.

  8. Youssef1313 commented on Oct 27, 2023

    @Youssef1313
    Member

    ItemsWrapGrid is actually not implemented on Skia. The issue is still reproducible on Skia with StackPanel though.

  9. Youssef1313 commented on Oct 27, 2023

    @Youssef1313
    Member

    Skia part (not including ItemsWrapGrid support) is being done in #14147.

  10. removed their assignment
    on Oct 27, 2023
  11. added
    area/listview 📃
    project/items 🧾
    difficulty/challenging 🤯
    and removed
    triage/untriaged
    difficulty/tbd
    on Oct 30, 2023
  12. added theissue type on Jul 25, 2025
  13. added a commit that references this issue on Apr 20, 2026
    091f5b0
  14. MartinZikmund commented on Apr 20, 2026

    @MartinZikmund
    Member

    Repro branch created: `dev/mazi/repro/14133`

    Confirmed on Skia Desktop. Two runtime tests were added to `Given_TwoPaneView`, both failing as expected:

    1. `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.

    2. `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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/listview 📃difficulty/challenging 🤯has-repro-branchkind/bugproject/items 🧾project/layout 🧱

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions