Issue metadata
Sign in to add a comment
|
Text input cursor in omnibox is not centered vertically
Reported by
mr.ber...@gmail.com,
Nov 23 2016
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Sofari/537.36 Steps to reproduce the problem: Type in omnibox What is the expected behavior? Expect that text input cursor is vertically centered What went wrong? Text input cursor is not vertically centered Did this work before? N/A Chrome version: 53.0.2785.116 Channel: n/a OS Version: 10.0 Flash Version: Shockwave Flash 23.0 r0 In a regular text input field, the cursor is centered. Windows 10 64 bit, single external display, 1920x1080, 100% default zoom in Chrome, ClearType on, no custom sizing options (100%, 9 point Segoe UI), no other custom font size settings as far as I can remember
,
Nov 23 2016
I don't think so. Issue 666977 has "vertical" in the name, yet it is about mispositioning left vs. right. I would call that "horizonal". In line with this, the patch suggested in Issue 666977 (https://codereview.chromium.org/2520003007/) says: "[Mac] Omnibox text and icon spacing - Moved the BubbleDecoration one pt to the left - Moved the Omnibox text 2 pts to the left" So again, a horizontal alignment patch; also, it applies to Macs, while I am on Windows.
,
Nov 23 2016
,
Nov 24 2016
You are correct that the cursor is not vertically centered. This is because the font is positioned such that the "normal ascent" (the ascent, but not any "internal leading" area for diacritics) is vertically centered. Since the cursor and selection include areas outside this region (e.g. descent, internal leading), they are not centered. This is an intentional design decision to try and improve the appearance of text in the common (non-editing) case.
,
Nov 24 2016
Thanks for the explanation!
,
May 3 2017
Issue 506474 has been merged into this issue. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by ligim...@chromium.org
, Nov 23 2016Status: Duplicate (was: Unconfirmed)