diff --git a/lib/browser/api/browser-view.ts b/lib/browser/api/browser-view.ts index a1659a88ee8d..ed6670d4574d 100644 --- a/lib/browser/api/browser-view.ts +++ b/lib/browser/api/browser-view.ts @@ -145,6 +145,12 @@ export default class BrowserView { if (this.#autoHorizontalProportion || this.#autoVerticalProportion) { this.#webContentsView.setBounds(newViewBounds); } + + // Update #lastWindowSize value after browser windows resize + this.#lastWindowSize = { + width: newBounds.width, + height: newBounds.height + }; } get webContentsView () {