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:
Sebastian Keller 2022-12-11 18:27:05 +01:00 committed by Marge Bot
parent 423aab5e11
commit 54f112fa59

View File

@ -542,7 +542,7 @@ const QuickSettingsLayout = GObject.registerClass({
? this._overlay.get_preferred_height(-1)
: [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;
this._overlay?.allocate_available_size(0, 0, box.get_width(), box.get_height());