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

Issue 838630 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

[Cocoa] Bookmark icon mis-aligned with label

Project Member Reported by weili@chromium.org, May 1 2018

Issue description

Chrome Version: 68.0.3416.0
OS: 10.14

What steps will reproduce the problem?
(1) Check bookmark icon and its label, they are not aligned
(2) Hover over the bookmark button or folder, the highlight seems smaller and towards up

The attached file showed what was wrong.

What is the expected result?

They should be aligned and the highlight surrounds it properly 



 
Screen Shot 2018-05-01 at 10.44.55 AM.png
13.9 KB View Download

Comment 1 by weili@chromium.org, May 1 2018

Owner: weili@chromium.org
Status: Assigned (was: Untriaged)
I can put in my queue if no one else calls for it
I think this is a regression and probably related to  issue 838798  ?
Labels: -Type-Bug -Pri-3 Needs-Bisect Pri-1 Type-Bug-Regression
Labels: -Needs-Bisect ReleaseBlock-Stable M-68

Comment 6 by weili@chromium.org, May 2 2018

Cc: manoranj...@chromium.org lgrey@chromium.org rbasuvula@chromium.org nyerramilli@chromium.org weili@chromium.org
 Issue 838798  has been merged into this issue.

Comment 7 by weili@chromium.org, May 2 2018

Status: Started (was: Assigned)

Comment 8 by pbos@chromium.org, May 2 2018

This is probably the same as  issue 838856 . I assume this is Cocoa?

Comment 9 by pbos@chromium.org, May 2 2018

Same root cause I mean. I increased the bookmarks bar height from 28dp to 32dp which was intended to increase the views version of the bookmarks bar but this constant is shared between both.

Comment 10 by pbos@chromium.org, May 2 2018

Same root cause I mean. I increased the bookmarks bar height from 28dp to 32dp which was intended to increase the views version of the bookmarks bar but this constant is shared between both so it hit Cocoa as well, where it had different effects.
Project Member

Comment 11 by bugdroid1@chromium.org, May 3 2018

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

commit c29efd57272886b45e3becd47976e31d9228d0a2
Author: Wei Li <weili@chromium.org>
Date: Thu May 03 16:32:09 2018

Create and use Cocoa specific layout constants

As Views based UI is undergoing new changes, that applies to MacViews
browser as well, but diverges from Cocoa based browser. This CL solves
that problem by creating a function for Cocoa browser only. This
function can get Cocoa specific constants which won't be affected by
Views side of changes.

BUG= 838630 , 838856 
TEST=Pls make sure bookmark bar, icons and menus look ok for both Cocoa
version and MacViews version on Mac. They should be same as before for
other platforms.

Change-Id: I73152c05cfac77eb6b24a4d6204acb78767c833d
Reviewed-on: https://chromium-review.googlesource.com/1041141
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Wei Li <weili@chromium.org>
Cr-Commit-Position: refs/heads/master@{#555762}
[modify] https://crrev.com/c29efd57272886b45e3becd47976e31d9228d0a2/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm
[modify] https://crrev.com/c29efd57272886b45e3becd47976e31d9228d0a2/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm
[modify] https://crrev.com/c29efd57272886b45e3becd47976e31d9228d0a2/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm
[modify] https://crrev.com/c29efd57272886b45e3becd47976e31d9228d0a2/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
[modify] https://crrev.com/c29efd57272886b45e3becd47976e31d9228d0a2/chrome/browser/ui/cocoa/browser_window_cocoa.mm
[modify] https://crrev.com/c29efd57272886b45e3becd47976e31d9228d0a2/chrome/browser/ui/layout_constants.cc
[modify] https://crrev.com/c29efd57272886b45e3becd47976e31d9228d0a2/chrome/browser/ui/layout_constants.h

Status: Fixed (was: Started)
Thank you weili@ for the quick fix. Works fine for me again in latest Canary and in Cocoa-Mode :)
+screenshot. Everything is fine aligned again.
Bildschirmfoto 2018-05-04 um 17.00.19.png
30.3 KB View Download

Sign in to add a comment