CommunityToolkit/WindowsCommunityToolkit

GridSplitter adding width to column will make grid overflow

Open

#1,894 创建于 2018年3月15日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)C# (1,403 fork)batch import
bug :bug:controls :control_knobs:help wantedin progress :construction:

仓库指标

Star
 (5,708 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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: )

贡献者指南