workspacesView: Take scale factor into account to calculate spacing
This is a statically defined size and we need to adjust for scaleFactor ourselves, so do that and multiply those two values by the scale factor. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1701>
This commit is contained in:
parent
2d954c07fb
commit
63a96a7111
@ -228,8 +228,10 @@ class WorkspacesView extends WorkspacesViewBase {
|
||||
}
|
||||
|
||||
const spacing = (availableSpace - workspaceSize * 0.05) * (1 - fitMode);
|
||||
const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
|
||||
|
||||
return Math.clamp(spacing, WORKSPACE_MIN_SPACING, WORKSPACE_MAX_SPACING);
|
||||
return Math.clamp(spacing, WORKSPACE_MIN_SPACING * scaleFactor,
|
||||
WORKSPACE_MAX_SPACING * scaleFactor);
|
||||
}
|
||||
|
||||
_getWorkspaceModeForOverviewState(state) {
|
||||
|
Loading…
Reference in New Issue
Block a user