appDisplay: Don't add row and column spacing to the pagePadding
We use the pagePadding to adjust for the large indicators that we add on the left and right of the appGrid. While the original padding needs to be applied to the padding for the indicators (as it was in super.vfunc_style_changed already), there's no reason to add an extra row and column spacing to the pagePadding on all sides, so remove that. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3278>
This commit is contained in:
parent
9bf550da88
commit
bdb0fc6b14
@ -173,13 +173,8 @@ export const AppGrid = GObject.registerClass({
|
|||||||
|
|
||||||
_updatePadding() {
|
_updatePadding() {
|
||||||
const node = this.get_theme_node();
|
const node = this.get_theme_node();
|
||||||
const {rowSpacing, columnSpacing} = this.layoutManager;
|
|
||||||
|
|
||||||
const padding = this._indicatorsPadding.copy();
|
const padding = this._indicatorsPadding.copy();
|
||||||
padding.left += rowSpacing;
|
|
||||||
padding.right += rowSpacing;
|
|
||||||
padding.top += columnSpacing;
|
|
||||||
padding.bottom += columnSpacing;
|
|
||||||
['top', 'right', 'bottom', 'left'].forEach(side => {
|
['top', 'right', 'bottom', 'left'].forEach(side => {
|
||||||
padding[side] += node.get_length(`page-padding-${side}`);
|
padding[side] += node.get_length(`page-padding-${side}`);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user