Repository navigation
fix: Dancing Skia ScrollViewers - #12083
Conversation
0f5c32e to
1e77c5c
Compare
|
The build 76802 found UI Test snapshots differences: Details
|
If smaller font size is used, the resulting text could be smaller than the minimum of 16 effective pixels which ScrollViewer uses
7a4165e to
ad243a7
Compare
|
The build 76917 found UI Test snapshots differences: Details
|
|
The build 76917 found UI Test snapshots differences: Details
|
|
The build 76917 found UI Test snapshots differences: Details
|
|
The build 76917 found UI Test snapshots differences: Details
|
|
The build 76917 found UI Test snapshots differences: Details
|
GitHub Issue (If applicable): closes #8932, closes #11066, closes #7514
Related to #7544
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Applies to Material TextBoxes, Flyouts, Popups, other stuff - in general - anything that used ScrollViewer in some specific cases. Layout rounding not supported anywhere except Skia - and there it is supported only very partially - and that is a big problem - for example Grid does tap into this for its layout, but things like Measure and Arrange don't. As a result, what did happen was that ScrollViewer was checking the ScrollContentPresenter's ActualHeight which was layout rounded, because the child Grid underneath made it so, but on the other hand it used ViewportHeight which was not rounded - as a result, it assumed the content is scrollable (because of those few random decimal numbers difference, and it made the ScrollBars to show up. But after they showed up, in the next layout run it found out the bars were not needed after all and hid them and and the cycle repeated. Workaround for now is to make ScrollViewer to apply UseLayoutRounding false on its child Grid for now, but the proper fix will be to implement layout rounding everywhere, which is what I would love to look into next, as it will probably fix a lot of unpredicatable and hard to debug issues.
What is the new behavior?
ScrollViewerexplicitly sets its childGridto not layout roundPR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.