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
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) [#497](https://github.com/mattermost/desktop/issues/497)
- Fixed an issue where unnecessary focus remains after closing dialogs on the settings page. - Fixed an issue where unnecessary focus remains after closing dialogs on the settings page.
[#446](https://github.com/mattermost/desktop/issues/446) [#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 #### Windows
- Fixed desktop notifications not working when the window has been minimized from inactive state. - Fixed desktop notifications not working when the window has been minimized from inactive state.

View File

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

View File

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