mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
keyboard: Update extended key size on parent size changes
Extended keys should have the same size as their parent key, so make sure to update them when the parent size changes. https://gitlab.gnome.org/GNOME/gnome-shell/issues/1976
This commit is contained in:
parent
91bf7f1e44
commit
021f3e49b5
1 changed files with 2 additions and 0 deletions
|
|
@ -460,6 +460,8 @@ var Key = GObject.registerClass({
|
|||
this._extendedKeyboard.add(key);
|
||||
|
||||
key.set_size(...this.keyButton.allocation.get_size());
|
||||
this.keyButton.connect('notify::allocation',
|
||||
() => key.set_size(...this.keyButton.allocation.get_size()));
|
||||
}
|
||||
this._boxPointer.bin.add_actor(this._extendedKeyboard);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue