diff --git a/src/Views/Repository.axaml b/src/Views/Repository.axaml index 24b5232b..f7ce920b 100644 --- a/src/Views/Repository.axaml +++ b/src/Views/Repository.axaml @@ -154,7 +154,7 @@ - + diff --git a/src/Views/Repository.axaml.cs b/src/Views/Repository.axaml.cs index eead96ef..a0f71e4f 100644 --- a/src/Views/Repository.axaml.cs +++ b/src/Views/Repository.axaml.cs @@ -144,9 +144,13 @@ namespace SourceGit.Views private void OnLeftSidebarDataGridPropertyChanged(object _, AvaloniaPropertyChangedEventArgs e) { if (e.Property == DataGrid.ItemsSourceProperty || e.Property == DataGrid.IsVisibleProperty) - { UpdateLeftSidebarLayout(); - } + } + + private void OnLeftSidebarSizeChanged(object _, SizeChangedEventArgs e) + { + if (e.HeightChanged) + UpdateLeftSidebarLayout(); } private void UpdateLeftSidebarLayout()