diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 53ddc9712..3ee3c1770 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -320,10 +320,14 @@ PopupBaseMenuItem.prototype = { } extraWidth = availWidth - naturalWidth; } else { - if (child.span == -1) - availWidth = box.x2 - x; - else + if (child.span == -1) { + if (direction == St.TextDirection.LTR) + availWidth = box.x2 - x; + else + availWidth = x - box.x1; + } else { availWidth = naturalWidth; + } extraWidth = 0; }