mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
enhance: skip update layout after detached from visual tree
This commit is contained in:
parent
6553e27d36
commit
c03cc85232
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue