New issue
Advanced search Search tips

Issue 636120 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug

Blocking:
issue 605745



Sign in to add a comment

toolbar bottom stroke is 2px at 1.5 dsf with detached bookmark bar

Project Member Reported by bsep@chromium.org, Aug 9 2016

Issue description

OS: Windows 10 but probably other versions too

At 1.5 dsf the toolbar bottom stroke is 2px on the new tab page because of the detached bookmark bar. It looks really odd because it's supposed to be a hairline.

I suspect it's because BookmarkBarView is laying things out in DIPs and then its position is rounding up, but then I would expect it to be incorrect at 2x dsf, but it looks fine there.
 

Comment 1 by bsep@chromium.org, Aug 9 2016

Here's a screenshot for version 54.0.2824.0
bookmark-bar-2px.PNG
10.6 KB View Download

Comment 2 by ajha@chromium.org, Aug 11 2016

Components: UI>HighDPI

Comment 3 by bsep@chromium.org, Aug 19 2016

Owner: bsep@chromium.org
Status: Assigned (was: Untriaged)
I accidentally figured out how to fix this so I may as well finished the job.
Project Member

Comment 4 by bugdroid1@chromium.org, Aug 19 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/af9ecebdf6e165d4e0742c14bd16ec380124bb91

commit af9ecebdf6e165d4e0742c14bd16ec380124bb91
Author: bsep <bsep@chromium.org>
Date: Fri Aug 19 19:36:30 2016

Fix the toolbar bottom border being 2 pixels w/ a detached bookmark bar.

The toolbar draws a 1 pixel line as its bottom border. The detached
bookmark bar also draws a 1 pixel line as its top border. At 1x and 2x
those lines always overlap. But the bookmark bar top stroke was not laid
out properly so at fractional dsfs it would be pushed down 1 pixel and
cause the border to look like it was 2 pixels. I removed the bookmark
bar top stroke since it was redundant anyway.

R=pkasting
BUG= 636120 

Review-Url: https://codereview.chromium.org/2255313004
Cr-Commit-Position: refs/heads/master@{#413211}

[modify] https://crrev.com/af9ecebdf6e165d4e0742c14bd16ec380124bb91/chrome/browser/ui/views/frame/browser_view.cc

Comment 5 by bsep@chromium.org, Aug 19 2016

Status: Fixed (was: Assigned)

Sign in to add a comment