Skip to content

Commit 69023b8

Browse files
committed
ATL-1416: new windows to not overlap
1 parent 547ceea commit 69023b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arduino-ide-extension/src/electron-main/theia/electron-main-application.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
4141
async createWindow(
4242
asyncOptions: MaybePromise<TheiaBrowserWindowOptions> = this.getDefaultTheiaWindowOptions()
4343
): Promise<BrowserWindow> {
44-
const options = await asyncOptions;
44+
let options = await asyncOptions;
45+
options = this.avoidOverlap(options);
4546
let electronWindow: BrowserWindow | undefined;
4647
if (this._windows.length) {
4748
electronWindow = new BrowserWindow(options);

0 commit comments

Comments
 (0)