quickSettings: Use column spacing not row spacing to calculate width
This did not have any not have any noticeable effect, because both are the same size in the default theme. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2577>
This commit is contained in:
parent
423aab5e11
commit
54f112fa59
@ -542,7 +542,7 @@ const QuickSettingsLayout = GObject.registerClass({
|
|||||||
? this._overlay.get_preferred_height(-1)
|
? this._overlay.get_preferred_height(-1)
|
||||||
: [0, 0];
|
: [0, 0];
|
||||||
|
|
||||||
const availWidth = box.get_width() - (this.nColumns - 1) * this.row_spacing;
|
const availWidth = box.get_width() - (this.nColumns - 1) * this.column_spacing;
|
||||||
const childWidth = availWidth / this.nColumns;
|
const childWidth = availWidth / this.nColumns;
|
||||||
|
|
||||||
this._overlay?.allocate_available_size(0, 0, box.get_width(), box.get_height());
|
this._overlay?.allocate_available_size(0, 0, box.get_width(), box.get_height());
|
||||||
|
Loading…
Reference in New Issue
Block a user