New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 668146 link

Starred by 4 users

Issue metadata

Status: WontFix
Merged: issue 666977
Owner: ----
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



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 description

UserAgent: 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
 
Omnibox.png
20.1 KB View Download
Input.png
3.2 KB View Download
Mergedinto: 666977
Status: Duplicate (was: Unconfirmed)
Looks similar to 666977

Comment 2 by mr.ber...@gmail.com, 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.

Comment 3 by meh...@chromium.org, Nov 23 2016

Components: -UI UI>Browser>Omnibox
Status: Unconfirmed (was: Duplicate)
Status: WontFix (was: Unconfirmed)
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.

Comment 5 by mr.ber...@gmail.com, Nov 24 2016

Thanks for the explanation!
Cc: ananta@chromium.org smokana@chromium.org ranjitkan@chromium.org pkasting@chromium.org
 Issue 506474  has been merged into this issue.

Sign in to add a comment