Merge pull request #635 from yuya-oc/fix-zoom-issue

Keep MainWindow's zoom level to zero excepting webview
This commit is contained in:
Yuya Ochiai 2017-11-01 02:23:13 +09:00 committed by GitHub
commit 26bb64b8b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -41,6 +41,8 @@ Release date: TBD
[#497](https://github.com/mattermost/desktop/issues/497)
- Fixed an issue where unnecessary focus remains after closing dialogs on the settings page.
[#446](https://github.com/mattermost/desktop/issues/446)
- Fixed an issue where there is a case of that modified font size causes wrong rendering.
[#334](https://github.com/mattermost/desktop/issues/334)
#### Windows
- Fixed desktop notifications not working when the window has been minimized from inactive state.

View file

@ -329,7 +329,10 @@ const MainPage = createReactClass({
/>
);
return (
<div className='MainPage'>
<div
className='MainPage'
onClick={this.focusOnWebView}
>
<LoginModal
show={this.state.loginQueue.length !== 0}
request={request}

View file

@ -66,6 +66,7 @@ function createMainWindow(config, options) {
});
mainWindow.once('ready-to-show', () => {
mainWindow.webContents.setZoomLevel(0);
if (process.platform !== 'darwin') {
mainWindow.show();
} else if (options.hideOnStartup !== true) {