Skip to content

Commit

Permalink
Merge pull request AvaloniaUI#8520 from timunie/fix/DataGrid_LastColu…
Browse files Browse the repository at this point in the history
…mnIsClipped

fix: RowDesiredWidth was missing the RowHeaderWidth
  • Loading branch information
jmacato authored and grokys committed Aug 3, 2022
1 parent 2d2cd97 commit d2f8fe6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected override Size ArrangeOverride(Size finalSize)

OwningGrid.OnFillerColumnWidthNeeded(finalSize.Width);

double rowDesiredWidth = OwningGrid.ColumnsInternal.VisibleEdgedColumnsWidth + OwningGrid.ColumnsInternal.FillerColumn.FillerWidth;
double rowDesiredWidth = OwningGrid.RowHeadersDesiredWidth + OwningGrid.ColumnsInternal.VisibleEdgedColumnsWidth + OwningGrid.ColumnsInternal.FillerColumn.FillerWidth;
double topEdge = -OwningGrid.NegVerticalOffset;
foreach (Control element in OwningGrid.DisplayData.GetScrollingElements())
{
Expand Down

0 comments on commit d2f8fe6

Please sign in to comment.