fix: left side by layout did not update after size changed

This commit is contained in:
leo 2024-07-26 16:32:48 +08:00
parent c83b1fb145
commit b084ee5168
No known key found for this signature in database
2 changed files with 7 additions and 3 deletions

View file

@ -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()