summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2012-12-19 16:09:32 -0800
committerRaph Levien <raph@google.com>2012-12-20 15:42:47 -0800
commitafe8e9b6d033cb854afa3024d8198a32896a804a (patch)
tree1c11c310c07d81cd6649beb4aa2c84798e9206a0 /graphics/java/android/renderscript/ProgramVertexFixedFunction.java
parent412fbe7f8fb0fc2892308faf52c31dcc01e1cf5a (diff)
Suppress horizontal scrolling with trailing blanks
The existing behavior of EditText is that trailing blanks can cause a line to exceed the layout width, causing the cursor to extend past the line, which in turn causes horizontal scrolling. This patch clamps the cursor to the layout width in the non-scrolling case, which makes the spaces effectively invisible when they're at the end of the line, but at least suppresses the scrolling. The clamping only works reliably in left-to-right alignments, so this patch checks for than and only enables the clamping in those cases. Fix for bug 7699295. Change-Id: I22bc4e6c9ded3d7716edfcf10dd2b5c31a5da9de
Diffstat (limited to 'graphics/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions