Skip to content

Commit

Permalink
Merge pull request #8520 from timunie/fix/DataGrid_LastColumnIsClipped
Browse files Browse the repository at this point in the history
fix: RowDesiredWidth was missing the RowHeaderWidth
  • Loading branch information
jmacato authored Jul 15, 2022
2 parents 98ca548 + bb4287e commit 0d25749
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,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 0d25749

Please sign in to comment.