diff --git a/reducers/windows.js b/reducers/windows.js index c4b04b978..61b6addf9 100644 --- a/reducers/windows.js +++ b/reducers/windows.js @@ -111,9 +111,9 @@ export default function windows(state = defaultState, action) { } const splitWindows = Object.values(newSplitScreen); const windowMargins = { - right: splitWindows.filter(entry => entry.side === 'right').reduce((res, e) => Math.max(e.size, res), 0) + state.menuMargins.right, + right: splitWindows.filter(entry => entry.side === 'right').reduce((res, e) => Math.max(e.size, res), 0), bottom: splitWindows.filter(entry => entry.side === 'bottom').reduce((res, e) => Math.max(e.size, res), 0), - left: splitWindows.filter(entry => entry.side === 'left').reduce((res, e) => Math.max(e.size, res), 0) + state.menuMargins.left, + left: splitWindows.filter(entry => entry.side === 'left').reduce((res, e) => Math.max(e.size, res), 0), top: splitWindows.filter(entry => entry.side === 'top').reduce((res, e) => Math.max(e.size, res), 0) }; return {