Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TextInputLayout][a11y] Fixed text field's focused rect wrong behavio…
…r when using a11y magnification. Before, in requestRectangleOnScreen we were setting the text input layout’s rectangle to a specific and constant position, which caused the zoomed in screen to be fixed to the left instead of following the input text as it was typed. We should use the edit text’s rectangle’s position first, then adjust for the text field’s height (which includes the helper/error text), then use that updated rectangle on the super call of the method. PiperOrigin-RevId: 435402032 (cherry picked from commit dce4419)
- Loading branch information
1 parent
981129f
commit a8d8e70
Showing
2 changed files
with
17 additions
and
22 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