mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
refactor: get graph clip width from grid column definition directly
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
008708f07c
commit
2c8370fa92
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue