mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
1 changed files with 7 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue