Skip to content

Commit

Permalink
Add back resetWindowLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Sep 23, 2018
1 parent 11d72d4 commit e595459
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/actionCreators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export {
toggleMainWindowShadeMode,
windowsHaveBeenCentered,
centerWindowsIfNeeded,
resetWindowLayout,
browserWindowSizeChanged
} from "./windows";
export {
Expand Down
7 changes: 6 additions & 1 deletion js/actionCreators/windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit e595459

Please sign in to comment.