Skip to content

Commit

Permalink
docking: Fix arguments for overridden _getAppDisplayBoxForState
Browse files Browse the repository at this point in the history
We used to pass the wrong state argument to maybeAdjustBoxToDock that
may have lead to some unwanted behavior.
  • Loading branch information
3v1n0 committed Sep 24, 2022
1 parent 666b0a2 commit 3431f5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docking.js
Original file line number Diff line number Diff line change
Expand Up @@ -2199,9 +2199,9 @@ var DockManager = class DashToDock_DockManager {
], [
ControlsManagerLayout.prototype,
'_getAppDisplayBoxForState',
function (state, ...args) {
function (originalFunction, state, ...args) {
const { spacing } = this;
const box = workspaceBoxOriginFixer.call(this, state, ...args);
const box = workspaceBoxOriginFixer.call(this, originalFunction, state, ...args);
return maybeAdjustBoxToDock(state, box, spacing);
}
]);
Expand Down

0 comments on commit 3431f5f

Please sign in to comment.