Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pivot unexpectedly taking all horizontal space. #8968

Open
Qiu233 opened this issue Oct 11, 2023 · 0 comments
Open

Pivot unexpectedly taking all horizontal space. #8968

Qiu233 opened this issue Oct 11, 2023 · 0 comments
Labels
area-Pivot bug Something isn't working team-Controls Issue for the Controls team

Comments

@Qiu233
Copy link

Qiu233 commented Oct 11, 2023

Describe the bug

Pivot will take all horizontal space of the containing window, making other controls invisible.

Steps to reproduce the bug

<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="Auto"/>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    <Pivot>
        <PivotItem Header="Test"/>
    </Pivot>
    <Border Background="Red" Width="200" Height="200" Grid.Column="1"/>
</Grid>

Expected behavior

In the above code, a red block is expected be visible to the right side of Pivot, but it doesn't.
But when Grid.Column=1 changed to Grid.Row=1, the red block is visible at bottom.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.4.2: 1.4.231008000

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Pivot bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

2 participants