Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sentialx committed Apr 1, 2020
1 parent a15fba7 commit 778c8b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/main/view.ts
Expand Up @@ -223,14 +223,16 @@ export class View extends BrowserView {
},
);

this.setAutoResize({
width: true,
height: true,
} as any);

if (url.startsWith(NEWTAB_URL)) this.isNewTab = true;

this.webContents.loadURL(url);

this.setAutoResize({
width: true,
height: true,
horizontal: false,
vertical: false,
});
}

public updateNavigationState() {
Expand Down
6 changes: 5 additions & 1 deletion src/main/windows/app.ts
Expand Up @@ -152,7 +152,11 @@ export class AppWindow extends BrowserWindow {

const resize = () => {
setTimeout(() => {
this.viewManager.fixBounds();
if (process.platform === 'linux') {
this.viewManager.select(this.viewManager.selectedId, false);
} else {
this.viewManager.fixBounds();
}
});

setTimeout(() => {
Expand Down

0 comments on commit 778c8b7

Please sign in to comment.