app-display: Popup menus to the left in RTL locales
The popup menus of application icons in both the dash and the app view are positioned on the right of the icon. In the case of the dash this results in the menu being displayed off-screen in RTL locales, so move it to the opposite side instead. https://bugzilla.gnome.org/show_bug.cgi?id=635645
This commit is contained in:
@ -491,7 +491,11 @@ AppIconMenu.prototype = {
|
||||
__proto__: PopupMenu.PopupMenu.prototype,
|
||||
|
||||
_init: function(source) {
|
||||
PopupMenu.PopupMenu.prototype._init.call(this, source.actor, St.Align.MIDDLE, St.Side.LEFT, 0);
|
||||
let side = St.Side.LEFT;
|
||||
if (St.Widget.get_default_direction() == St.TextDirection.RTL)
|
||||
side = St.Side.RIGHT;
|
||||
|
||||
PopupMenu.PopupMenu.prototype._init.call(this, source.actor, St.Align.MIDDLE, side, 0);
|
||||
|
||||
this._source = source;
|
||||
|
||||
|
Reference in New Issue
Block a user