Skip to content

Commit 0409849

Browse files
committed
fix: the MinWidth of author column changed after dragging the right border of it (#1591)
Signed-off-by: leo <longshuang@msn.cn>
1 parent fe1ed62 commit 0409849

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ViewModels/LayoutInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ public GridLength CommitDetailFilesLeftWidth
6868
public DataGridLength AuthorColumnWidth
6969
{
7070
get => _authorColumnWidth;
71-
set => SetProperty(ref _authorColumnWidth, value);
71+
set => SetProperty(ref _authorColumnWidth, new DataGridLength(value.Value, DataGridLengthUnitType.Pixel, 0, value.DisplayValue));
7272
}
7373

7474
private GridLength _repositorySidebarWidth = new GridLength(250, GridUnitType.Pixel);
7575
private GridLength _workingCopyLeftWidth = new GridLength(300, GridUnitType.Pixel);
7676
private GridLength _stashesLeftWidth = new GridLength(300, GridUnitType.Pixel);
7777
private GridLength _commitDetailChangesLeftWidth = new GridLength(256, GridUnitType.Pixel);
7878
private GridLength _commitDetailFilesLeftWidth = new GridLength(256, GridUnitType.Pixel);
79-
private DataGridLength _authorColumnWidth = new DataGridLength(120, DataGridLengthUnitType.Pixel, 120, 120);
79+
private DataGridLength _authorColumnWidth = new DataGridLength(120, DataGridLengthUnitType.Pixel, 0, 120);
8080
}
8181
}

0 commit comments

Comments
 (0)