Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: ui/aura/root_window.cc

Issue 69343016: Fix autofill popup size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index c2c1ab58fb75bfd0c573e7924ea0ddaf955b3ecf..0bdc25cb8b504ad069949f4a013911e260ca0719 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -827,9 +827,13 @@ void RootWindow::OnHostResized(const gfx::Size& size) {
// Get the latest scale from display because it might have been changed.
compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()), size);
+ gfx::Size window_size = host_->GetBounds().size();
+ // If the window is minimized, then its size should be 0x0.
+ if (size.IsEmpty())
+ window_size = gfx::Size();
// The layer, and the observers should be notified of the
// transformed size of the root window.
- UpdateRootWindowSize(size);
+ UpdateRootWindowSize(window_size);
Ben Goodger (Google) 2013/11/20 21:50:44 What does GetBounds() return if the window is mini
FOR_EACH_OBSERVER(RootWindowObserver, observers_,
OnRootWindowHostResized(this));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698