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

Unified Diff: views/controls/textfield/native_textfield_views.cc

Issue 7696013: Minor fix to touch selection logic. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: modified according to comments Created 9 years, 4 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 | views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/native_textfield_views.cc
diff --git a/views/controls/textfield/native_textfield_views.cc b/views/controls/textfield/native_textfield_views.cc
index a4220d7cab40625b557cdc5d3556ca688c05ed2a..468a9c9c671d44cce2edc00529709a0740d8bfeb 100644
--- a/views/controls/textfield/native_textfield_views.cc
+++ b/views/controls/textfield/native_textfield_views.cc
@@ -1002,8 +1002,8 @@ void NativeTextfieldViews::OnCaretBoundsChanged() {
sel.selection_start(), gfx::SelectionModel::LEADING);
gfx::Rect start_cursor = render_text->GetCursorBounds(start_sel, false);
gfx::Rect end_cursor = render_text->GetCursorBounds(sel, false);
- gfx::Point start(start_cursor.x(), start_cursor.bottom());
- gfx::Point end(end_cursor.x(), end_cursor.bottom());
+ gfx::Point start(start_cursor.x(), start_cursor.bottom() - 1);
+ gfx::Point end(end_cursor.x(), end_cursor.bottom() - 1);
touch_selection_controller_->SelectionChanged(start, end);
}
« no previous file with comments | « no previous file | views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698