mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 785952 - Fix arrow panel issues with side arrows and RTL. r=enn
--HG-- extra : rebase_source : 93f61063e2d904c12adb60d2943c8a73d42c9334
This commit is contained in:
parent
da16040116
commit
236b63bcd6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user