Skip to content

Commit c03cc85

Browse files
committed
enhance: skip update layout after detached from visual tree
1 parent 6553e27 commit c03cc85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views/Repository.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ private void OnDashboardLayoutUpdated(object sender, EventArgs e)
376376
return;
377377

378378
var grid = sender as Grid;
379-
if (grid == null)
379+
if (grid == null || !grid.IsAttachedToVisualTree())
380380
return;
381381

382382
var leftHeight = grid.Bounds.Height - 28.0 * 5;

0 commit comments

Comments
 (0)