refactor: get graph clip width from grid column definition directly

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-05-08 13:39:27 +08:00
parent 008708f07c
commit 2c8370fa92
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ namespace SourceGit.Views
return;
// Calculate drawing area.
var width = Bounds.Width - 273 - histories.AuthorNameColumnWidth.Value;
var width = histories.CommitListHeader.ColumnDefinitions[0].ActualWidth;
var height = Bounds.Height;
// Calculate row height

View file

@ -30,7 +30,7 @@
Background="{DynamicResource Brush.Window}"
BorderThickness="0,0,0,1"
BorderBrush="{DynamicResource Brush.Border0}">
<Grid>
<Grid x:Name="CommitListHeader">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="3"/>