fix: the MinWidth of author column changed after dragging the right border of it (#1591)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2026-02-09 14:30:07 +08:00
parent fe1ed62083
commit 0409849a25

View File

@@ -68,7 +68,7 @@ namespace SourceGit.ViewModels
public DataGridLength AuthorColumnWidth
{
get => _authorColumnWidth;
set => SetProperty(ref _authorColumnWidth, value);
set => SetProperty(ref _authorColumnWidth, new DataGridLength(value.Value, DataGridLengthUnitType.Pixel, 0, value.DisplayValue));
}
private GridLength _repositorySidebarWidth = new GridLength(250, GridUnitType.Pixel);
@@ -76,6 +76,6 @@ namespace SourceGit.ViewModels
private GridLength _stashesLeftWidth = new GridLength(300, GridUnitType.Pixel);
private GridLength _commitDetailChangesLeftWidth = new GridLength(256, GridUnitType.Pixel);
private GridLength _commitDetailFilesLeftWidth = new GridLength(256, GridUnitType.Pixel);
private DataGridLength _authorColumnWidth = new DataGridLength(120, DataGridLengthUnitType.Pixel, 120, 120);
private DataGridLength _authorColumnWidth = new DataGridLength(120, DataGridLengthUnitType.Pixel, 0, 120);
}
}