@@ -2,7 +2,7 @@ import Override from '../Override.js';
22import { overview } from 'resource:///org/gnome/shell/ui/main.js' ;
33import { SMALL_WORKSPACE_RATIO , ControlsState } from 'resource:///org/gnome/shell/ui/overviewControls.js' ;
44
5- const _computeWorkspacesBoxForState = function ( state , box , searchHeight , dashHeight , thumbnailsHeight ) {
5+ const _computeWorkspacesBoxForState = function ( state , box , searchHeight , dashHeight , thumbnailsHeight , spacing ) {
66 const workspaceBox = box . copy ( ) ;
77 const [ width , height ] = workspaceBox . get_size ( ) ;
88 const { y1 : startY } = this . _workAreaBox ;
@@ -18,16 +18,16 @@ const _computeWorkspacesBoxForState = function(state, box, searchHeight, dashHei
1818 break ;
1919 case ControlsState . WINDOW_PICKER :
2020 workspaceBox . set_origin ( 0 ,
21- startY + searchHeight + this . _spacing +
22- thumbnailsHeight * rows + this . _spacing * expandFraction ) ;
21+ startY + searchHeight + spacing +
22+ thumbnailsHeight * rows + spacing * expandFraction ) ;
2323 workspaceBox . set_size ( width ,
2424 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 ) ;
2828 break ;
2929 case ControlsState . APP_GRID :
30- workspaceBox . set_origin ( 0 , startY + searchHeight + this . _spacing ) ;
30+ workspaceBox . set_origin ( 0 , startY + searchHeight + spacing ) ;
3131 workspaceBox . set_size (
3232 width ,
3333 Math . round ( height * rows * SMALL_WORKSPACE_RATIO ) ) ;
0 commit comments