mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
enhance: skip update layout after detached from visual tree
This commit is contained in:
@@ -376,7 +376,7 @@ namespace SourceGit.Views
|
||||
return;
|
||||
|
||||
var grid = sender as Grid;
|
||||
if (grid == null)
|
||||
if (grid == null || !grid.IsAttachedToVisualTree())
|
||||
return;
|
||||
|
||||
var leftHeight = grid.Bounds.Height - 28.0 * 5;
|
||||
|
||||
Reference in New Issue
Block a user