-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fixed the double tap editor freeze issue and added test cases #26203
Conversation
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -61,16 +61,16 @@ public override Size GetDesiredSize(double widthConstraint, double heightConstra | |||
// get an exception; it doesn't know what do to with it. So instead we'll size | |||
// it to fit its current contents and use those values to replace infinite constraints | |||
|
|||
PlatformView.SizeToFit(); | |||
var sizeThatFits = PlatformView.SizeThatFits(new CGSize(widthConstraint, heightConstraint)); |
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.
Exactly the same logic is applied in the SearchBar, happens the same problem? does it require the same changes?
PlatformView.SizeToFit(); |
If need the same changes, could you add a test covering the fix in the SearchBar?
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.
@jsuarezruiz, Since the issue arises when AutoSize is set in the editor, and AutoSize is not supported in the search bar, the search bar does not exhibit the freezing behavior and functions as expected.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Issue Details
Double-tapping the editor causes the app to freeze or become unresponsive.
Root Cause
When you double-tap the editor and AutoSize is set to "TextChanges," the editor continuously resizes to fit the content, leading to the app freezing or hanging.
Description of Change
Issues Fixed
Fixes #25975
Fixes #25940
Fixes #25938
Fixes #17757
Tested the behaviour in the following platforms
Output Screenshot
BeforeFix.mp4
AfterFix.mp4