-
-
Notifications
You must be signed in to change notification settings - Fork 831
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
text: Set autosize bounds lazily #18870
base: master
Are you sure you want to change the base?
Conversation
The pixel bounds returned by Transform behave sometimes differently compared to regular bounds.
This simplifies setting bounds, as it doesn't require a gc context. This is especially helpful when setting the bounds lazily after autosize.
Auto size does not set the bounds immediately, but lazily after some selected operations, independently of relayout. This patch removes the `requested_width/height` and replaces it with proper lazily set autosize bounds.
This test verifies when lazy autosize bounds are applied taking into consideration various interactions with other objects and classes.
This test verifies lazy autozise bounds behavior in relation to various events.
Can you also please test #11632 on this? |
@@ -1,12 +1,12 @@ | |||
150 | |||
103 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was the old test output created wrongly?
It the new one equal to FP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct. Somehow the output.txt
wasn't from FP
TextField.getCharIndexAtPoint
accurate #18861Auto size does not set the bounds immediately, but lazily after some selected operations, independently of relayout.
This patch removes the
requested_width/height
and replaces it with proper lazily set autosize bounds.Some tests are added which prove that relayout and lazy autosize bounds are independent of each other, and prove when autosize bounds are lazily updated.