Index: ui/keyboard/keyboard_controller.cc |
diff --git a/ui/keyboard/keyboard_controller.cc b/ui/keyboard/keyboard_controller.cc |
index d517f07de69623117b3d1e09b85b2e4198a172e7..f2ca6221c89a5bb9f02f2b965df7cf8363cdc441 100644 |
--- a/ui/keyboard/keyboard_controller.cc |
+++ b/ui/keyboard/keyboard_controller.cc |
@@ -239,6 +239,7 @@ void KeyboardController::NotifyKeyboardBoundsChanging( |
} else { |
current_keyboard_bounds_ = gfx::Rect(); |
} |
+ ui_->EnsureCaretInWorkArea(); |
} |
void KeyboardController::HideKeyboard(HideReason reason) { |
@@ -504,7 +505,6 @@ void KeyboardController::ShowAnimationFinished() { |
// Notify observers after animation finished to prevent reveal desktop |
// background during animation. |
NotifyKeyboardBoundsChanging(container_->bounds()); |
- ui_->EnsureCaretInWorkArea(); |
} |
void KeyboardController::HideAnimationFinished() { |