Bug 606343, part 4, fix arrow position in rtl, r=dao, a=blocking

This commit is contained in:
Neil Deakin 2010-12-05 17:10:45 -05:00
parent 159870049d
commit 6e4383281d

View File

@ -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";