Index: ui/views/controls/textfield/textfield.cc |
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc |
index bedee3a1c0c8cabcece0a1f5d192c79e9f5d5191..504f88d7a75c08bf86a254785bf9bee1cb06393d 100644 |
--- a/ui/views/controls/textfield/textfield.cc |
+++ b/ui/views/controls/textfield/textfield.cc |
@@ -923,6 +923,15 @@ void Textfield::OnBoundsChanged(const gfx::Rect& previous_bounds) { |
OnCaretBoundsChanged(); |
} |
+bool Textfield::GetNeedsNotificationWhenVisibleBoundsChange() const { |
+ return true; |
+} |
+ |
+void Textfield::OnVisibleBoundsChanged() { |
+ if (touch_selection_controller_) |
+ touch_selection_controller_->SelectionChanged(); |
+} |
+ |
void Textfield::OnEnabledChanged() { |
View::OnEnabledChanged(); |
if (GetInputMethod()) |