feature: allow to resize the width of AUTHOR column in histories (#203)

This commit is contained in:
leo 2024-07-09 16:29:41 +08:00
parent 738189393e
commit 06ba2fd733
No known key found for this signature in database
3 changed files with 73 additions and 27 deletions

View file

@ -120,8 +120,11 @@ namespace SourceGit.Views
}
}
var headerHeight = grid.ColumnHeaderHeight;
startY -= headerHeight;
// Apply scroll offset.
context.PushClip(new Rect(Bounds.Left, Bounds.Top, grid.Columns[0].ActualWidth, Bounds.Height));
context.PushClip(new Rect(Bounds.Left, Bounds.Top + headerHeight, grid.Columns[0].ActualWidth, Bounds.Height));
context.PushTransform(Matrix.CreateTranslation(0, -startY));
// Calculate bounds.