Issue metadata
Sign in to add a comment
|
PageInfo title string not left-aligned on Windows |
||||||||||||||||||||||||
Issue descriptionChrome Version: 57.0.2980.0 OS: Windows 10.10586 What steps will reproduce the problem? (1) Visit any HTTPS site (2) Click the Security chip to open PageInfo What is the expected result? Text is aligned What happens instead? Title isn't aligned with the description text Looks okay on OS X and in Chrome 55 for Windows.
,
Jan 13 2017
gah - yeah I'll need to update the constants in website_settings_popup_view.cc so that it works with/without --secondary-ui-md
,
Jan 17 2017
So actually I think this is a regression from two CLs that landed really close together. r442683 (kylixrd) landed while r442779 (tapted) was in flight and changed some of the assumptions. There's a change on r442683 that doesn't look right: https://codereview.chromium.org/2571613002/diff/160001/ui/views/bubble/bubble_dialog_delegate.cc#newcode109 changes the title margins for non-material from gfx::Insets(kPanelVertMargin, kPanelHorizMargin, 0, kPanelHorizMargin) (== 13/13/0/13) to views_delegate->GetDialogFrameViewInsets() which (on non-harmony) is gfx::Insets ViewsDelegate::GetDialogFrameViewInsets() { return gfx::Insets(kPanelVertMargin, kButtonHEdgeMarginNew, 0, kButtonHEdgeMarginNew); } (== 13/20/0/20). In any case, it looks like, since r442683, website_settings_popup_view now needs to deal with dynamic title margins. I think the neat way to do that is by exposing a title_margins_ member on BubbleDialogDelegate (which we tried not to do in https://codereview.chromium.org/2581493002, but things are different now :). possible CL to fix: https://codereview.chromium.org/2640593002
,
Jan 17 2017
How the dialog looks with/without --secondary-ui-md after the CL in https://codereview.chromium.org/2640593002
,
Jan 18 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/57b697aa2605b6bbcb97352a32ccdb28204739e9 commit 57b697aa2605b6bbcb97352a32ccdb28204739e9 Author: tapted <tapted@chromium.org> Date: Wed Jan 18 20:50:56 2017 Fix alignment of title/content on the OIB / Site Settings bubble. r442683 adopted a dynamic inset for the title in bubble dialogs in order to align with the content under Harmony. Shortly after, r442779 landed and adopted the default bubble title view for the site settings bubble, rather than providing a custom one. Title and content should always be aligned on the site settings bubble (regardless of Harmony), so it now needs to be aware of whether the title in the dialog is inset or not. Harmony will align title and content by default. Otherwise, to fix alignment for the site settings bubble, explicitly set the title margins to match the content margins. BUG= 681081 Review-Url: https://codereview.chromium.org/2640593002 Cr-Commit-Position: refs/heads/master@{#444474} [modify] https://crrev.com/57b697aa2605b6bbcb97352a32ccdb28204739e9/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc [modify] https://crrev.com/57b697aa2605b6bbcb97352a32ccdb28204739e9/ui/views/bubble/bubble_dialog_delegate.cc [modify] https://crrev.com/57b697aa2605b6bbcb97352a32ccdb28204739e9/ui/views/bubble/bubble_dialog_delegate.h
,
Jan 18 2017
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by elawrence@chromium.org
, Jan 13 2017Labels: -Pri-3 Pri-2