popup-menu: Fix allocation in RTL locales
Commit ed7d4928e5
fixed some width-for-height cases in popup menu items,
but did not consider RTL locales. Fix this.
https://bugzilla.gnome.org/show_bug.cgi?id=659827
This commit is contained in:
parent
a7405e8b39
commit
5f6dce2b5c
@ -320,10 +320,14 @@ PopupBaseMenuItem.prototype = {
|
|||||||
}
|
}
|
||||||
extraWidth = availWidth - naturalWidth;
|
extraWidth = availWidth - naturalWidth;
|
||||||
} else {
|
} else {
|
||||||
if (child.span == -1)
|
if (child.span == -1) {
|
||||||
availWidth = box.x2 - x;
|
if (direction == St.TextDirection.LTR)
|
||||||
else
|
availWidth = box.x2 - x;
|
||||||
|
else
|
||||||
|
availWidth = x - box.x1;
|
||||||
|
} else {
|
||||||
availWidth = naturalWidth;
|
availWidth = naturalWidth;
|
||||||
|
}
|
||||||
extraWidth = 0;
|
extraWidth = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user