Skip to content

Commit 2bac590

Browse files
authored
Fix jumping of SplitView pane in right aligned layout via min width (#1899)
## Description <!--- Describe your changes in detail --> Fixes jumping by fixing width. ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> Fixes #1897 ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## Screenshots (if appropriate): ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change)
1 parent b68128f commit 2bac590

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WinUIGallery/Samples/ControlPages/SplitViewPage.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222
<StackPanel>
2323
<controls:ControlExample HeaderText="A basic SplitView.">
2424

25-
<Grid Height="300" VerticalAlignment="Top">
25+
<Grid Height="300" Width="400" VerticalAlignment="Top">
2626
<SplitView
2727
x:Name="splitView"
2828
CompactPaneLength="{x:Bind compactPaneLengthSlider.Value, Mode=OneWay}"
2929
DisplayMode="CompactOverlay"
3030
IsPaneOpen="{x:Bind togglePaneButton.IsChecked, Mode=TwoWay, Converter={StaticResource nullableBooleanToBooleanConverter}}"
31+
Width="400"
3132
IsTabStop="False"
3233
OpenPaneLength="{x:Bind openPaneLengthSlider.Value, Mode=OneWay}"
3334
PaneBackground="{ThemeResource SystemControlBackgroundChromeMediumLowBrush}">

0 commit comments

Comments
 (0)