Skip to content

Commit

Permalink
[Fix for issue #1379 as suggested by RecursiveNerd](/Dirkster99/Avalo…
Browse files Browse the repository at this point in the history
…nDock/commit/79f3416ce520e74bba0371a0fb82c848fd3176c7)

AvalonDockCrash in LayoutGridControl after Resize - ArgumentException #1379

Prevent crash from setting negative size
nonsensesoftware/wpftoolkit@38d36f2
  • Loading branch information
Dirkster99 committed Feb 14, 2019
1 parent f8167d3 commit f8be3fa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public GridLength DockWidth
}
set
{
if( DockWidth != value )
if( DockWidth != value && value.Value > 0)
{
RaisePropertyChanging( "DockWidth" );
_dockWidth = value;
Expand All @@ -74,7 +74,7 @@ public GridLength DockHeight
}
set
{
if( DockHeight != value )
if( DockHeight != value && value.Value > 0)
{
RaisePropertyChanging( "DockHeight" );
_dockHeight = value;
Expand Down

0 comments on commit f8be3fa

Please sign in to comment.