File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Microsoft.Toolkit.Uwp.UI.Controls/GridSplitter Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,11 @@ private bool VerticalMove(double verticalChange)
194194 // if sibling row has fixed width then resize it
195195 else if ( ! IsStarRow ( SiblingRow ) )
196196 {
197+ // Would adding to this column make the current column violate the MinWidth?
198+ if ( IsValidRowHeight ( CurrentRow , verticalChange ) == false )
199+ {
200+ return false ;
201+ }
197202 if ( ! SetRowHeight ( SiblingRow , verticalChange * - 1 , GridUnitType . Pixel ) )
198203 {
199204 return true ;
@@ -254,6 +259,12 @@ private bool HorizontalMove(double horizontalChange)
254259 // if sibling column has fixed width then resize it
255260 else if ( ! IsStarColumn ( SiblingColumn ) )
256261 {
262+ // Would adding to this column make the current column violate the MinWidth?
263+ if ( IsValidColumnWidth ( CurrentColumn , horizontalChange ) == false )
264+ {
265+ return false ;
266+ }
267+
257268 if ( ! SetColumnWidth ( SiblingColumn , horizontalChange * - 1 , GridUnitType . Pixel ) )
258269 {
259270 return true ;
You can’t perform that action at this time.
0 commit comments