Bug 785952 - Fix arrow panel issues with side arrows and RTL. r=enn

--HG--
extra : rebase_source : 93f61063e2d904c12adb60d2943c8a73d42c9334
This commit is contained in:
Shane Caraveo 2012-08-28 09:47:19 -07:00
parent da16040116
commit 236b63bcd6

View File

@ -423,15 +423,20 @@
hideAnchor = true;
}
else {
let dir = "";
arrowbox.pack = popupTop + popupRect.height / 2 < anchorTop ? "end" : "start";
if (horizPos == 1) {
container.dir = "";
anchorClass = "left";
}
else if (horizPos == -1) {
container.dir = "reverse";
dir = "reverse";
anchorClass = "right";
}
// In RTL, everything should be inverted.
if (window.getComputedStyle(this).direction == "rtl") {
dir = (dir == "") ? "reverse" : "";
}
container.dir = dir;
}
}
else {