-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting MinWidth and using Auto columns breaks layout when scrolling #256
Comments
Repro video: TreeDataGridDemo_Dop2Rhbv73.mp4 |
Same issue |
Tested it can reproed also in 11.0.0 and 11.0.1 |
Tested 11.0.0-preview1 and seems to be working properly |
Seems to be related to this: Lines 424 to 427 in 95632c9
|
Actually even without min/max width the layout breaks when scrolling. repro:
|
@wieslawsoltes, Isn't it something with the RealizeElements function inside TreeDataGridPresenterBase? Is it really related to viewport?
At least, I've tried to catch those problematic rows, but dont know what to do with them exactly and how to update them properly... Does it make sense?
Also, I've noticed when columns have equal widths there's no bug at all, and when I change width manually it happens. |
more info: What is happening here is there are 2 scroll viewers, one containing the header columns and one containing the rows. This is so the headers can stay pinned at the top. What happens is as you scroll, etc... or do the sorting function, the layout pass of the recycled elements, causes the extent of the ScrollViewer that surrounds the rows to become wider than the one controlling the header. This basically means the horizontal scrolling becomes totally messed up. Suggestions: new rows are materialised and measured, and are bigger than has been seen before, perhaps in the scenarios indicated by the repos, the columns do not get adjusted to match the cell sizes. |
Repro
The text was updated successfully, but these errors were encountered: