Skip to content

Commit

Permalink
Chore: disable dialog auto resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Aahil13 authored and manusa committed Oct 5, 2022
1 parent f32058f commit abb4e04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,8 @@
"markdown-it": "13.0.1",
"nodehun": "3.0.2",
"preact": "10.11.0"
},
"directories": {
"doc": "docs"
}
}
2 changes: 1 addition & 1 deletion src/browser-window/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ describe('browser-window util module test suite', () => {
expect(dialog.setBounds).toHaveBeenCalledWith({x: 0, y: 0, width: 13, height: 37});
expect(dialog.setAutoResize).toHaveBeenCalledTimes(1);
expect(dialog.setAutoResize)
.toHaveBeenCalledWith({width: true, horizontal: true, height: true, vertical: true});
.toHaveBeenCalledWith({width: false, horizontal: false, height: false, vertical: false});
});
});
2 changes: 1 addition & 1 deletion src/browser-window/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const showDialog = (window, browserView) => {
window.setBrowserView(browserView);
const {width, height} = window.getContentBounds();
browserView.setBounds({x: 0, y: 0, width, height});
browserView.setAutoResize({width: true, horizontal: true, height: true, vertical: true});
browserView.setAutoResize({width: false, horizontal: false, height: false, vertical: false});
};

module.exports = {showDialog};

0 comments on commit abb4e04

Please sign in to comment.