Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "suggest: fix shifting suggestion window"
This reverts commit 7dc39e7. Reason for revert: Causes diacritics window to pop up on the top-left corner. https://screenshot.googleplex.com/4ogxKR6U4uMtBsE.png Bisect log: https://paste.googleplex.com/6667540586561536 Original change's description: > suggest: fix shifting suggestion window > > Currently the multi word suggestion window aligns itself underneath the > relevant text in the currently focused input when a suggestion candidate > is triggered and shown to the user. The alignment works very well, > however there is a noticeable "shifting" of the window as the > AssistiveWindowController class attempts to align the suggestion window > based on events received. > > This is due to an unexpected ordering of events received to the > AssistiveWindowController. A ShowSuggestion event may be received prior > to SetBounds event (this is because surrounding text and cursor bounds > updates are sent as two distinct events). > > To accomodate this, the CL adds a delay before showing a multi word > suggestion to the user. The delay allows the two related events > (ShowSuggestion and SetBounds) to be received before making the > suggestion window visible to the user. > > BUG=b:241321719 > > Change-Id: If14fe976b244d29deea0cd08925808e7a2221e03 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3811193 > Commit-Queue: Curtis McMullan <curtismcmullan@chromium.org> > Reviewed-by: Darren Shen <shend@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1032789} Bug: b:241321719 Change-Id: Ic00f81ee39433c6c524f9337d72b9c67640009ce Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3826337 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Auto-Submit: jhtin <jhtin@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by: Bao-Duy Tran <tranbaoduy@chromium.org> Reviewed-by: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/main@{#1034213}
- Loading branch information
jhtin
authored and
Chromium LUCI CQ
committed
Aug 11, 2022
1 parent
b8afc01
commit 3a31378
Showing
4 changed files
with
17 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters