We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6d5f8b + 9d63dc2 commit 0216730Copy full SHA for 0216730
CommunityToolkit.WinUI.UI.Controls.DataGrid/DataGrid/DataGridColumns.cs
@@ -1245,6 +1245,14 @@ private bool ComputeDisplayedColumns()
1245
_horizontalOffset -= GetEdgedColumnWidth(dataGridColumn);
1246
dataGridColumn = this.ColumnsInternal.GetPreviousVisibleScrollingColumn(dataGridColumn);
1247
}
1248
+
1249
+ if (_horizontalOffset == 0 && cx < displayWidth)
1250
+ {
1251
+ // if the columns have been scrolled, and all visible columns are fully rendered in the available space,
1252
+ // then HorizontalAdjustment needs to be updated so that DataGridCellsPresenter.ShouldDisplayCell
1253
+ // don't hide columns based on the old value.
1254
+ HorizontalAdjustment = displayWidth - cx;
1255
+ }
1256
1257
1258
// third try to partially scroll in first scrolled off column
0 commit comments