Add back resetWindowLayout

This commit is contained in:
Jordan Eldredge 2018-09-22 21:04:27 -07:00
parent 96ed2b353c
commit 35f4004caa
2 changed files with 7 additions and 1 deletions

View File

@ -24,6 +24,7 @@ export {
toggleMainWindowShadeMode,
windowsHaveBeenCentered,
centerWindowsIfNeeded,
resetWindowLayout,
browserWindowSizeChanged
} from "./windows";
export {

View File

@ -10,7 +10,8 @@ import {
TOGGLE_WINDOW_SHADE_MODE,
SET_WINDOW_VISIBILITY,
WINDOWS_HAVE_BEEN_CENTERED,
BROWSER_WINDOW_SIZE_CHANGED
BROWSER_WINDOW_SIZE_CHANGED,
RESET_WINDOW_LAYOUT
} from "../actionTypes";
import { getPositionDiff, SizeDiff } from "../resizeUtils";
@ -188,6 +189,10 @@ export function browserWindowSizeChanged() {
return { type: BROWSER_WINDOW_SIZE_CHANGED, height, width };
}
export function resetWindowLayout(): Dispatchable {
return { type: RESET_WINDOW_LAYOUT };
}
export function ensureWindowsAreOnScreen(): Dispatchable {
return (dispatch, getState) => {
const state = getState();