Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Button] Fix icon position with multiline text
When the icon gravity is textTop, we are using the smaller one of the calculated height from text paint and the text layout height to decide the icon position. This is wrong when there are multiple lines of text since the text paint is always single line and always shorter than the actual height. Fixes this by returning the actual layout height whenever there are multiple lines of text to fix the issue. Resolves #2619 PiperOrigin-RevId: 440923733
- Loading branch information
Showing
1 changed file
with
17 additions
and
9 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