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

Issue 836099 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Page info misaligned with hosted app menu button

Project Member Reported by alancutter@chromium.org, Apr 24 2018

Issue description

Chrome Version: 68
OS: chromeOS

What steps will reproduce the problem?
(1) Open hosted app page info dialog from hosted app menu.

What is the expected result?

Page info dialog should be aligned with the menu icon.

What happens instead?

The dialog is slightly to the right of the icon.
See screenshots.

 
actual-default.png
7.6 KB View Download
expected-default.png
7.7 KB View Download
This regressed with https://chromium-review.googlesource.com/#/c/1011922/ which fixed the icon under "--top-chrome-md=material-touch-optimized --enable-features=SecondaryUiMd" but broke the alignment in vanilla chromeOS.
Screenshots of view rects affected by WIP CL: https://chromium-review.googlesource.com/c/chromium/src/+/1025592
rects-before.png
8.3 KB View Download
rects-after.png
8.3 KB View Download
Project Member

Comment 3 by bugdroid1@chromium.org, Apr 24 2018

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

commit ed2ae4a3e2943d902359c976b7fa1e94921a4238
Author: Alan Cutter <alancutter@chromium.org>
Date: Tue Apr 24 21:38:10 2018

Fix hosted app menu button anchor point misalignment

This CL fixes the misalignment of the hosted app menu button
anchor point by updating its view bounds.

Overriding CalculatePreferredSize() didn't update the behaviour
of GetHeightForWidth() which caused it to be cropped by the
container's BoxLayout. LabelButton::SetMinSize() exists and
should be used instead.

Before rects:
https://bugs.chromium.org/p/chromium/issues/attachment?aid=335982&signed_aid=hz80AUGwixvyOI7d2jCIYQ==&inline=1

After rects:
https://bugs.chromium.org/p/chromium/issues/attachment?aid=335983&signed_aid=9NLhUbDPYjh_YRMnsVABAw==&inline=1

Bug:  836099 
Change-Id: I77ad668816df936bbb3129aa1253330382fe22c5
Reviewed-on: https://chromium-review.googlesource.com/1025592
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553290}
[modify] https://crrev.com/ed2ae4a3e2943d902359c976b7fa1e94921a4238/chrome/browser/ui/views/frame/hosted_app_menu_button.cc
[modify] https://crrev.com/ed2ae4a3e2943d902359c976b7fa1e94921a4238/chrome/browser/ui/views/frame/hosted_app_menu_button.h

Status: Fixed (was: Started)

Sign in to add a comment