Skip to content

Commit

Permalink
Handle negative value for SolutionView width (#6146)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrrm authored Nov 18, 2024
1 parent 8fac9eb commit 4736534
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ private void ListView_SizeChanged(object sender, SizeChangedEventArgs e)
}

var newWidth = _projectColumnHeader.ActualWidth + width;
_projectColumn.Width = newWidth;
if (newWidth > 0)
{
_projectColumn.SetValue(Canvas.WidthProperty, newWidth);
}

// this width adjustment is only done once.
_projectList.SizeChanged -= ListView_SizeChanged;
Expand Down

0 comments on commit 4736534

Please sign in to comment.