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

Unified Diff: ui/aura/window_tree_host.cc

Issue 138073004: Fix omnibox height when less than 64 pixels tall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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 | ui/views/widget/desktop_aura/desktop_root_window_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host.cc
diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc
index 4deb5fcd2fd3b990ce6a26eaf65a0e78decb02cb..7b45902646d76c33e8bfebc83b7a001ad109e0c8 100644
--- a/ui/aura/window_tree_host.cc
+++ b/ui/aura/window_tree_host.cc
@@ -181,10 +181,11 @@ void WindowTreeHost::NotifyHostResized(const gfx::Size& new_size) {
compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()),
new_size);
+ gfx::Size layer_size = GetBounds().size();
// The layer, and the observers should be notified of the
// transformed size of the root window.
- UpdateRootWindowSize(new_size);
- delegate_->OnHostResized(new_size);
+ UpdateRootWindowSize(layer_size);
+ delegate_->OnHostResized(layer_size);
}
#if defined(OS_ANDROID)
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_root_window_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698