am 21403857: Merge "Fix for bug 8911390 RTL text alignment is changed ..." into jb-mr2-dev
* commit '214038571992a4ba65531297bf4a89af9a0b5fd4': Fix for bug 8911390 RTL text alignment is changed ...
This commit is contained in:
@@ -64,7 +64,9 @@ public class Touch {
|
||||
if (actualWidth < availableWidth) {
|
||||
if (a == Alignment.ALIGN_CENTER) {
|
||||
x = left - ((availableWidth - actualWidth) / 2);
|
||||
} else if ((ltr && (a == Alignment.ALIGN_OPPOSITE)) || (a == Alignment.ALIGN_RIGHT)) {
|
||||
} else if ((ltr && (a == Alignment.ALIGN_OPPOSITE)) ||
|
||||
(!ltr && (a == Alignment.ALIGN_NORMAL)) ||
|
||||
(a == Alignment.ALIGN_RIGHT)) {
|
||||
// align_opposite does NOT mean align_right, we need the paragraph
|
||||
// direction to resolve it to left or right
|
||||
x = left - (availableWidth - actualWidth);
|
||||
|
||||
Reference in New Issue
Block a user