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

Unified Diff: ui/keyboard/content/keyboard_ui_content.cc

Issue 1573203002: Fix white strip issue after moving browser window with VK showing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/content/keyboard_ui_content.cc
diff --git a/ui/keyboard/content/keyboard_ui_content.cc b/ui/keyboard/content/keyboard_ui_content.cc
index 967548b7770730578ec68cc2e82bc22b53582107..f117e781b0325cd1b5986d969ead69ae340f48a6 100644
--- a/ui/keyboard/content/keyboard_ui_content.cc
+++ b/ui/keyboard/content/keyboard_ui_content.cc
@@ -161,7 +161,8 @@ void KeyboardUIContent::LoadSystemKeyboard() {
}
void KeyboardUIContent::UpdateInsetsForWindow(aura::Window* window) {
- aura::Window* keyboard_window = GetKeyboardWindow();
+ aura::Window* keyboard_container =
+ keyboard_controller()->GetContainerWindow();
if (!ShouldWindowOverscroll(window))
return;
@@ -172,7 +173,7 @@ void KeyboardUIContent::UpdateInsetsForWindow(aura::Window* window) {
if (view && window->Contains(view->GetNativeView())) {
gfx::Rect window_bounds = view->GetNativeView()->GetBoundsInScreen();
gfx::Rect intersect =
- gfx::IntersectRects(window_bounds, keyboard_window->bounds());
+ gfx::IntersectRects(window_bounds, keyboard_container->bounds());
int overlap = ShouldEnableInsets(window) ? intersect.height() : 0;
if (overlap > 0 && overlap < window_bounds.height())
view->SetInsets(gfx::Insets(0, 0, overlap, 0));
« 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