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

Unified Diff: ui/gfx/render_text.cc

Issue 407993003: Fix gesture handling for Views textfields (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 5 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
Index: ui/gfx/render_text.cc
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
index fb7364b66f2b538f5733867b11afc11330755c6d..19300da2eedd99827a535d945ddc2491cd0e073e 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -892,7 +892,7 @@ void RenderText::SetDisplayOffset(int horizontal_offset) {
max_offset = extra_content;
break;
case ALIGN_CENTER:
- min_offset = -extra_content / 2;
+ min_offset = -(extra_content + 1) / 2;
sky 2014/07/21 22:37:43 Why do you need to do this change?
mohsen 2014/07/21 23:07:56 This is an off-by-one pixel bug I had in my previo
max_offset = extra_content / 2;
break;
default:

Powered by Google App Engine
This is Rietveld 408576698