Issue metadata
Sign in to add a comment
|
RenderText should vertically center the cap height for multi-line text |
||||||||||||||||||||||
Issue descriptionIt does this for non-multi-line text with DetermineBaselineCenteringText: https://cs.chromium.org/chromium/src/ui/gfx/render_text.cc?l=1326&rcl=5e77d8045bc6904a6925dced1187f3e7dd8d5ae2 But for multi-line text, the same adjustment isn't made, based on the logic here: https://cs.chromium.org/chromium/src/ui/gfx/render_text.cc?l=1205&rcl=5e77d8045bc6904a6925dced1187f3e7dd8d5ae2 As a result, multi-line text tends to appear as if it's laying out too low compared to non-multi-line text. This specifically causes an issue in the new experimental vertical layout in the omnibox. Compare the vertical position of the "Google Search" text (non-multi-line) and the "characterized by" text (multi-line) in the attached screenshots. The following is a bit of a hack but it shows how it's possible to center the cap height of multi-line text: https://codereview.chromium.org/2948033003. Are there any drawbacks or implications of doing something like this? Is there a better approach to achieving the desired effect?
,
Jun 29 2017
Is there a better component than the generic "UI" component for this bug so that it doesn't get lost entirely?
,
Dec 13 2017
jdonnelly@, if this matters to you, can you pursue finding an appropriate owner? Otherwise please close it.
,
Feb 14 2018
ping jdonnelly@ per comment #3
,
Feb 21 2018
The NextAction date has arrived: 2018-02-21
,
May 10 2018
We've abandoned vertical layout, this is obsolete. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by tapted@chromium.org
, Jun 22 2017