Commit 1f48d774 authored by Dana Fried's avatar Dana Fried Committed by Commit Bot

Fix PWA zoom bubble regression on Windows

This is a small workaround. Root cause is crbug.com/1132767, which is
not as easily solved.

Bug: 1129763
Change-Id: I3a96f9aa7ca7bfebd7b410097f32a871df3abff8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2435145
Commit-Queue: Dana Fried <dfried@chromium.org>
Reviewed-by: default avatarCaroline Rising <corising@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811326}
parent a87fafaf
...@@ -648,8 +648,14 @@ void GlassBrowserFrameView::LayoutTitleBar() { ...@@ -648,8 +648,14 @@ void GlassBrowserFrameView::LayoutTitleBar() {
window_icon_->SetVisible(show_icon); window_icon_->SetVisible(show_icon);
if (window_title_) if (window_title_)
window_title_->SetVisible(show_title); window_title_->SetVisible(show_title);
if (!show_icon && !show_title && !web_app_frame_toolbar()) if (!show_icon && !show_title &&
(!web_app_frame_toolbar() || frame()->IsFullscreen())) {
// TODO(crbug.com/1132767): The "frame()->IsFullscreen()" term is required
// because we cannot currently lay out the toolbar in fullscreen mode
// without breaking a bunch of bubble anchoring. Please remove when the
// issue is resolved.
return; return;
}
const int icon_size = const int icon_size =
display::win::ScreenWin::GetSystemMetricsInDIP(SM_CYSMICON); display::win::ScreenWin::GetSystemMetricsInDIP(SM_CYSMICON);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment