Chromium Code Reviews| 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)); |
| } |