@@ -2,7 +2,7 @@ import Override from '../Override.js';
2
2
import { overview } from 'resource:///org/gnome/shell/ui/main.js' ;
3
3
import { SMALL_WORKSPACE_RATIO , ControlsState } from 'resource:///org/gnome/shell/ui/overviewControls.js' ;
4
4
5
- const _computeWorkspacesBoxForState = function ( state , box , searchHeight , dashHeight , thumbnailsHeight ) {
5
+ const _computeWorkspacesBoxForState = function ( state , box , searchHeight , dashHeight , thumbnailsHeight , spacing ) {
6
6
const workspaceBox = box . copy ( ) ;
7
7
const [ width , height ] = workspaceBox . get_size ( ) ;
8
8
const { y1 : startY } = this . _workAreaBox ;
@@ -18,16 +18,16 @@ const _computeWorkspacesBoxForState = function(state, box, searchHeight, dashHei
18
18
break ;
19
19
case ControlsState . WINDOW_PICKER :
20
20
workspaceBox . set_origin ( 0 ,
21
- startY + searchHeight + this . _spacing +
22
- thumbnailsHeight * rows + this . _spacing * expandFraction ) ;
21
+ startY + searchHeight + spacing +
22
+ thumbnailsHeight * rows + spacing * expandFraction ) ;
23
23
workspaceBox . set_size ( width ,
24
24
height -
25
- dashHeight - this . _spacing -
26
- searchHeight - this . _spacing -
27
- thumbnailsHeight * rows - this . _spacing * expandFraction ) ;
25
+ dashHeight - spacing -
26
+ searchHeight - spacing -
27
+ thumbnailsHeight * rows - spacing * expandFraction ) ;
28
28
break ;
29
29
case ControlsState . APP_GRID :
30
- workspaceBox . set_origin ( 0 , startY + searchHeight + this . _spacing ) ;
30
+ workspaceBox . set_origin ( 0 , startY + searchHeight + spacing ) ;
31
31
workspaceBox . set_size (
32
32
width ,
33
33
Math . round ( height * rows * SMALL_WORKSPACE_RATIO ) ) ;
0 commit comments