Bug 779930: Reflect the images for RTL. [r=wesj, r=mfinkle]
This commit is contained in:
@@ -105,6 +105,7 @@ class TextSelection extends Layer implements GeckoEventListener {
|
||||
}
|
||||
});
|
||||
} else if (event.equals("TextSelection:PositionHandles")) {
|
||||
final boolean rtl = message.getBoolean("rtl");
|
||||
final JSONArray positions = message.getJSONArray("positions");
|
||||
GeckoApp.mAppContext.mMainHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
@@ -116,7 +117,7 @@ class TextSelection extends Layer implements GeckoEventListener {
|
||||
|
||||
TextSelectionHandle handle = getHandle(position.getString("handle"));
|
||||
handle.setVisibility(position.getBoolean("hidden") ? View.GONE : View.VISIBLE);
|
||||
handle.positionFromGecko(left, top);
|
||||
handle.positionFromGecko(left, top, rtl);
|
||||
}
|
||||
} catch (Exception e) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user