mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Bug 606343, part 4, fix arrow position in rtl, r=dao, a=blocking
This commit is contained in:
parent
159870049d
commit
6e4383281d
@ -324,7 +324,9 @@
|
||||
hideAnchor = true;
|
||||
}
|
||||
else {
|
||||
arrowbox.pack = popupRect.left + popupRect.width / 2 < anchorRect.left ? "end" : "start";
|
||||
let rtl = (window.getComputedStyle(this).direction == "rtl");
|
||||
arrowbox.pack = (popupRect.left + popupRect.width / 2 < anchorRect.left) != rtl ?
|
||||
"end" : "start";
|
||||
if (vertPos == 1) {
|
||||
container.dir = "";
|
||||
anchorClass = "top";
|
||||
|
Loading…
Reference in New Issue
Block a user