[MM-35781] Another workaround for Linux resizing (#1608)
This commit is contained in:
@@ -144,8 +144,18 @@ function handleResizeMainWindow() {
|
|||||||
bounds = status.mainWindow.getContentBounds();
|
bounds = status.mainWindow.getContentBounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentView) {
|
const setBoundsFunction = () => {
|
||||||
currentView.setBounds(getAdjustedWindowBoundaries(bounds.width, bounds.height, !urlUtils.isTeamUrl(currentView.server.url, currentView.view.webContents.getURL())));
|
if (currentView) {
|
||||||
|
currentView.setBounds(getAdjustedWindowBoundaries(bounds.width, bounds.height, !urlUtils.isTeamUrl(currentView.server.url, currentView.view.webContents.getURL())));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Another workaround since the window doesn't update properly under Linux for some reason
|
||||||
|
// See above comment
|
||||||
|
if (process.platform === 'linux') {
|
||||||
|
setTimeout(setBoundsFunction, 10);
|
||||||
|
} else {
|
||||||
|
setBoundsFunction();
|
||||||
}
|
}
|
||||||
status.viewManager.setLoadingScreenBounds();
|
status.viewManager.setLoadingScreenBounds();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user