Skip to content

Commit 05d8ec6

Browse files
authored
Merge pull request #237 from mzur/g42.4-fix
Fix changed function argument list
2 parents 3748703 + e2329ea commit 05d8ec6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

[email protected]/overview/controlsManagerLayout.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ var ControlsManagerLayout = class {
1111
constructor() {
1212
this.originalLayout = null;
1313
this._overrideProperties = {
14-
_computeWorkspacesBoxForState(state, box, workAreaBox, searchHeight, dashHeight, thumbnailsHeight) {
14+
_computeWorkspacesBoxForState() {
15+
let state, box, workAreaBox, searchHeight, dashHeight, thumbnailsHeight;
16+
if (arguments.length === 5) {
17+
[state, box, searchHeight, dashHeight, thumbnailsHeight] = arguments;
18+
workAreaBox = this._workAreaBox;
19+
} else {
20+
[state, box, workAreaBox, searchHeight, dashHeight, thumbnailsHeight] = arguments;
21+
}
22+
1523
const workspaceBox = box.copy();
1624
const [width, height] = workspaceBox.get_size();
1725
const { y1: startY } = workAreaBox;

0 commit comments

Comments
 (0)