Fixed the window resize for Windows as well (#2705)
This commit is contained in:
@@ -408,13 +408,8 @@ export class MainWindow extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private emitBoundsForMaximize = () => {
|
private emitBoundsForMaximize = () => {
|
||||||
// Workaround for Linux since the window bounds aren't updated immediately when the window is maximized for some reason
|
// Workaround since the window bounds aren't updated immediately when the window is maximized for some reason
|
||||||
if (process.platform !== 'linux') {
|
setTimeout(() => this.emit(MAIN_WINDOW_RESIZED, this.getBounds()), 10);
|
||||||
return;
|
|
||||||
}
|
|
||||||
setTimeout(() => {
|
|
||||||
this.emit(MAIN_WINDOW_RESIZED, this.getBounds());
|
|
||||||
}, 10);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private onMaximize = () => {
|
private onMaximize = () => {
|
||||||
|
Reference in New Issue
Block a user