mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -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;
|
return;
|
||||||
|
|
||||||
var grid = sender as Grid;
|
var grid = sender as Grid;
|
||||||
if (grid == null)
|
if (grid == null || !grid.IsAttachedToVisualTree())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var leftHeight = grid.Bounds.Height - 28.0 * 5;
|
var leftHeight = grid.Bounds.Height - 28.0 * 5;
|
||||||
|
|
Loading…
Reference in a new issue