mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
dateMenu: Remove an unnecessary change for RTL layouts
Calculating 1 - 0.5 is rather useless if the value was 0.5 before... https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1037
This commit is contained in:
parent
bc465ab006
commit
7173ec1df7
1 changed files with 1 additions and 4 deletions
|
|
@ -548,10 +548,7 @@ class DateMenuButton extends PanelMenu.Button {
|
|||
let hbox;
|
||||
let vbox;
|
||||
|
||||
let menuAlignment = 0.5;
|
||||
if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
|
||||
menuAlignment = 1.0 - menuAlignment;
|
||||
super._init(menuAlignment);
|
||||
super._init(0.5);
|
||||
|
||||
this._clockDisplay = new St.Label({ style_class: 'clock' });
|
||||
this._clockDisplay.clutter_text.y_align = Clutter.ActorAlign.CENTER;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue