Repository navigation
Clipping refactoring - #1726
Clipping refactoring#1726
Conversation
0c6d094 to
71fafe0
Compare
71fafe0 to
9ba3e4b
Compare
jeromelaban
left a comment
There was a problem hiding this comment.
This PR requires a feature branch first.
|
@jeromelaban Nope. This PR is about what is happening outside the content. The problem showed on gitter is more about a wrong measurement ( |
I am not sure if it is worth the effort to investigate this because it happens only under very rare circumstances. |
770c6e2 to
1b00ae4
Compare
This comment has been minimized.
This comment has been minimized.
7d58105 to
8f6b616
Compare
This comment has been minimized.
This comment has been minimized.
20d4463 to
4c857b5
Compare
+ renamed misleading test names
Co-Authored-By: David <[email protected]>
86a9e14 to
183dd87
Compare
|
Published in
|
Calling this method instead of SetNeedsLayout means that OnInvalidateMeasure() is called for types that override it. This fixes a bug introduced by #1726 (somehow) whereby changing TextBlock.Foreground and setting the TextBlock to Collapsed in the same synchronous pass would not result in the new Foreground showing when the TextBlock was made visible again.
Calling this method instead of SetNeedsLayout means that OnInvalidateMeasure() is called for types that override it. This fixes a bug introduced by #1726 (somehow) whereby changing TextBlock.Foreground and setting the TextBlock to Collapsed in the same synchronous pass would not result in the new Foreground showing when the TextBlock was made visible again.
Bugfix / Refactoring / Enhancement
Refactored the way the clipping is calculated on Uno
All controls were clippings to its bounds when it's not how it's working on WinUI:
desiredSizeis close or greater and itsarrangeSizeScrollViewerPresenter) will always clip to its boundsContentControlwon't clip if there's aRenderTransformon its contentCornerRadiuswill clip when its value is> 0.0PR Checklist
Please check if your PR fulfills the following requirements:
[ ] Docs have been added/updated which fit documentation template (for bug fixes / features)Screenshots Compare Test Runresults.Related Issues
Related PRs (merged)