-
Notifications
You must be signed in to change notification settings - Fork 6k
Fix accent popup position #25524
Fix accent popup position #25524
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm
Outdated
Show resolved
Hide resolved
|
We need a test for this as well |
|
@chunhtai Any guidance on how to test this? |
|
We could maybe test |
|
@knopp That sounds good, let me know if you run into issue |
|
I've added a test for this. |
|
@chunhtai Can you review this again please? Let's unblock this ASAP. |
|
Hi @knopp I assume this is the accent popup |
|
@chunhtai, it is. Do |
|
I just tested at the latest framework and applied local changes to the my engine build I am using multiple screen and the flutter app is not on my primary screen i think. I ran into similar issue when I convert rect for accessibility I wonder if you need to do the same? engine/shell/platform/darwin/macos/framework/Source/FlutterPlatformNodeDelegateMac.mm Line 45 in 6fa0fb0
|
|
@chunhtai, I tested this with multiple displays. [window convertRectToScreen] should take care of that. I just noticed that there is one oversight in the code - It assumes that view covers entire window. Which is currently true but might not be in future, the rect should be converted from view to window coordinates first. But this shouldn't cause the problem you're seeing. |
9b174bc to
5c57ad2
Compare
|
I've pushed fix for the view->window conversion. My framework / engine are couple of days older than yours, I'll update and retest this. |
5c57ad2 to
8f88a04
Compare
3016245 to
b0c1a09
Compare
|
@chunhtai, anything else needed here? |
chunhtai
left a comment
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.
LGTM

flutter/flutter#80164
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.