CommunityToolkit/WindowsCommunityToolkit

GridSplitter adding width to column will make grid overflow

Open

#1894 aperta il 15 mar 2018

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)C# (1403 fork)batch import
bug :bug:controls :control_knobs:help wantedin progress :construction:

Metriche repository

Star
 (5708 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I'm submitting a...

Current behavior

Adjusting the splitter when the second column has a default width will make the grid overflow when dragged right then left.

Expected behavior

Splitter respects the root grid bounds.

Minimal reproduction of the problem with instructions

Using GridSplitter in UWP Community Toolkit Sample App. Change line 19 and 20 to:

<ColumnDefinition Width="120" />
<ColumnDefinition MinWidth="100" />

Drag vertical splitter right then left. It will allow you to resize the second column all the way to the right edge of the widow hiding the third column.

Environment

Nuget Package(s): 
Microsoft.Toolkit v2.2.0
Microsoft.Toolkit.Uwp v2.2.0
Microsoft.Toolkit.Uwp v2.2.0
Microsoft.Toolkit.Uwp.Controls v2.2.0

Package Version(s): 

Windows 10 Build Number:
- [ ] Anniversary Update (14393) 
- [ ] Creators Update (15063)
- [X ] Fall Creators Update (16299)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Anniversary Update (14393) 
- [ ] Creators Update (15063)
- [X ] Fall Creators Update (16299)
- [ ] Insider Build (xxxxx)

Device form factor:
- [ X] Desktop
- [ ] Mobile
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [X ] 2017 (version: 15.6.1)
- [ ] 2017 Preview (version: )

Guida contributor