New issue
Advanced search Search tips

Issue 800372 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 16
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug
M-X

Blocking:
issue 603386



Sign in to add a comment

Harmony extension popup is 1px too high (Mac), 1px too low (Windows)

Project Member Reported by meh...@chromium.org, Jan 9 2018

Issue description

Chrome Version: Chrome Canary 65.0.3316.0
OS: macOS 10.12.6 - NonRetina

This is a follow up of  issue 757646 :

What steps will reproduce the problem?
(1) Compare the height of the Extension popup with height of the Bookmarks Star popup


What is the expected result?
The height of the Extension popup could be 1px lower to match the height of the other toolbar popups like the Bookmarks Star popup.

What happens instead?
The height of the Extension popup is 1px too high.

Please use labels and text to provide additional information.
Screenshots are attached.

Thanks
Mehmet
 
Extension_vs_Bookmark.png
35.5 KB View Download
Placing it 1px lower would also match it with the height of the NSMenu that's shown for extensions without their own popup.

Please see the screenshot. Thanks :-)
Bildschirmfoto 2018-01-09 um 18.14.55.png
35.8 KB View Download

Comment 2 by tapted@chromium.org, Jan 10 2018

Cc: bettes@chromium.org
Components: -Internals>Views>Desktop Platform>Extensions UI>Browser>Bubbles
Labels: Proj-HarmonyDialogs OS-Linux OS-Windows
Summary: Harmony extension popup is 1px too high (Mac), 1px too low (Windows) (was: MacViews - Extension popup is 1px too high )
+bettes I think we want to tweak Windows as well? It currently anchors one pixel _lower_ than the bookmarks bubble.

(or do we want to shift Mac down two pixels?)
win.png
64.1 KB View Download

Comment 3 by bsep@chromium.org, Jan 10 2018

Cc: -bettes@chromium.org
Owner: bettes@chromium.org

Comment 4 by bettes@chromium.org, Jan 11 2018

Cc: -tapted@chromium.org
Owner: tapted@chromium.org
Nice catch! I agree with c1 and yes, this applies to Windows as well. 

Comment 5 by tapted@chromium.org, Jan 11 2018

Status: Assigned (was: Untriaged)

Comment 6 by tapted@chromium.org, Jan 23 2018

Blocking: 603386
These Proj=MacViews bugs should probably be tracking for Phase 3 ( Issue 603386 ) - m66.
Cc: ellyjo...@chromium.org
Labels: Target-67 MacViews-Dialogs
Owner: bsep@chromium.org
bsep: did you fix this at some point?

Comment 8 by bsep@chromium.org, Mar 26 2018

No, I haven't touched it. Do you want me to try to fix it for 67?
68 would be okay too, but 67 would be best :)
Labels: M-67
If we're targeting for M67, pls have the fix landed ASAP to trunk.

Comment 11 by bsep@chromium.org, Mar 27 2018

Owner: pbos@chromium.org
Delegating to pbos@

Comment 12 by pbos@chromium.org, Mar 28 2018

Observation: Mine's 1px lower than Bret's, so perhaps Bret's hit by HDPI inconsistency?

FWIW I think mine's fine and doesn't have to align with the bottom of the location bar. Bret's looks wonky because there's no visual spacing between the location-bar bottom and the bubble top so you get a 2px border effectively.

I'm not sure if the solution is to align Bret's with mine or align mine with the location bar? The placement is natural for location-bar items as the bubbles are associated with the location bar. bettes@ WDYT w/r/t this screenshot? I think it's fine and that the visual distinction between location bar and browser-action bubbles might even be useful?
even-lower.png
10.3 KB View Download

Comment 13 by pbos@chromium.org, Mar 28 2018

To be clear, bsep@'s screenshot looks egregious. :)

Comment 14 by pbos@chromium.org, Mar 29 2018

Cc: tapted@chromium.org
Bret set my mind straight. I think the inkdrop effect is inset from the icon edge, so as we're attaching to the icon it looks like it's not attaching to the visible bubble area (inkdrop area) as it's smaller than the button.
** Bulk Edit **

There are only two M67 dev releases left on 04/03 & 04/10 before M67 branch on 04/12. Please try to land the fix ASAP to trunk so we can move forward with 50%-50% experiment on M67 Canary/Dev (if possible at all). Thank you.
** Bulk Edit **

There is only one dev release left 04/10 before M67 branch on 04/12. Please try to land the fix ASAP to trunk so we can move forward with 50%-50% experiment on M67 Canary/Dev (if possible at all). Thank you.

FYI: Change/Fix has to be landed in trunk latest by 4:00 PM PT, Friday (04/06) so we can pick it up for next week dev release. 

Comment 17 by pbos@chromium.org, Apr 3 2018

Labels: -M-67 -Target-67 M-68 Target-68
Bumping major, feel free to take this bug from me if it's urgent.
Pls mark the bug as fixed if CL is landed in trunk and nothing else is pending. Thank you.
Labels: -Target-68 Target-69
Labels: -M-68 Group-GM2_Mac_Visual_Regressions
Labels: M-68
Labels: -M-68 M-69
Labels: -M-69 -Target-69 M-70 Target-70
Secondary UI - Moving to M70
Project Member

Comment 24 by bugdroid1@chromium.org, Aug 1

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

commit 6f92518b820eb652ed4d03512728f1d032042a96
Author: Peter Boström <pbos@chromium.org>
Date: Wed Aug 01 18:12:37 2018

Use inset anchor bounds for toolbar buttons

Adds a Views::GetAnchorBoundsInScreen() method. This defaults to
GetBoundsInScreen() but can be overridden for views whose visual
bounds differ from their actual bounds. This is the case for toolbar
buttons on Touch (that provide larger hit targets than their visual
size).

This method is then used for the menus spawned by AppMenuButton and
ToolbarButton as well as BubbleDialogDelegate which allows these
specific menus and BubbleDialogDelegates in general to be better
aligned visually to their anchors.

Bug:  chromium:800372 , chromium:869928
Change-Id: I9c516d8a7ecb6c922e347d4db61ce1db72c71be7
Reviewed-on: https://chromium-review.googlesource.com/1152525
Commit-Queue: Peter Boström <pbos@chromium.org>
Reviewed-by: Trent Apted <tapted@chromium.org>
Reviewed-by: Bret Sepulveda <bsep@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579861}
[modify] https://crrev.com/6f92518b820eb652ed4d03512728f1d032042a96/chrome/browser/ui/views/toolbar/app_menu.cc
[modify] https://crrev.com/6f92518b820eb652ed4d03512728f1d032042a96/chrome/browser/ui/views/toolbar/browser_app_menu_button.cc
[modify] https://crrev.com/6f92518b820eb652ed4d03512728f1d032042a96/chrome/browser/ui/views/toolbar/browser_app_menu_button.h
[modify] https://crrev.com/6f92518b820eb652ed4d03512728f1d032042a96/chrome/browser/ui/views/toolbar/toolbar_action_view.cc
[modify] https://crrev.com/6f92518b820eb652ed4d03512728f1d032042a96/chrome/browser/ui/views/toolbar/toolbar_action_view.h
[modify] https://crrev.com/6f92518b820eb652ed4d03512728f1d032042a96/chrome/browser/ui/views/toolbar/toolbar_button.cc
[modify] https://crrev.com/6f92518b820eb652ed4d03512728f1d032042a96/chrome/browser/ui/views/toolbar/toolbar_button.h
[modify] https://crrev.com/6f92518b820eb652ed4d03512728f1d032042a96/ui/views/bubble/bubble_dialog_delegate.cc
[modify] https://crrev.com/6f92518b820eb652ed4d03512728f1d032042a96/ui/views/bubble/bubble_dialog_delegate.h
[modify] https://crrev.com/6f92518b820eb652ed4d03512728f1d032042a96/ui/views/view.cc
[modify] https://crrev.com/6f92518b820eb652ed4d03512728f1d032042a96/ui/views/view.h

Labels: -Target-70 -M-70 M-X
Labels: Proj-DesktopUI
Labels: Hotlist-MdRefreshDesignPolish
Labels: Hotlist-DesktopUITriaged
Labels: -Pri-2 Pri-3
Project Member

Comment 30 by bugdroid1@chromium.org, Oct 16

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

commit 1d1b230e8e6f2e18058273dec7d9b5770f3871db
Author: Peter Boström <pbos@chromium.org>
Date: Tue Oct 16 21:19:33 2018

Anchor ToolbarActionView context menu correctly

Makes ToolbarActionView::DoShowContextMenu use GetAnchorBoundsInScreen
which insets into the view to match the visible inkdrop hover effects.

Bug:  chromium:800372 
Change-Id: Ibe2bfe93547bae75590c87214e2c1ed0b73aa37b
Reviewed-on: https://chromium-review.googlesource.com/c/1281919
Reviewed-by: Bret Sepulveda <bsep@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600124}
[modify] https://crrev.com/1d1b230e8e6f2e18058273dec7d9b5770f3871db/chrome/browser/ui/views/toolbar/toolbar_action_view.cc

Status: Fixed (was: Assigned)
Labels: TE-Verified-M72 TE-Verified-72.0.3583.0
Verified the fix on Mac 10.13.1, Windows-10 and Ubuntu 14.04 using Chrome version #72.0.3583.0 as per the comment #0.
Attaching screen shot for reference.
Observed the alignment of pop-up height is proper.
Hence, the fix is working as expected. 
Adding the verified labels.
Note: Able to reproduce the issue on chrome version with out fix.

Thanks...!!



800372.png
303 KB View Download

Sign in to add a comment