fix: update BrowserView#lastWindowSize
after window resize (#43635)
fix: update BrowserView#lastWindowSize after window resize (#43462) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Zonglong Liu <83216456+mai-121@users.noreply.github.com>
This commit is contained in:
parent
a3a595383d
commit
87ecd1e62b
1 changed files with 6 additions and 0 deletions
|
@ -145,6 +145,12 @@ export default class BrowserView {
|
||||||
if (this.#autoHorizontalProportion || this.#autoVerticalProportion) {
|
if (this.#autoHorizontalProportion || this.#autoVerticalProportion) {
|
||||||
this.#webContentsView.setBounds(newViewBounds);
|
this.#webContentsView.setBounds(newViewBounds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update #lastWindowSize value after browser windows resize
|
||||||
|
this.#lastWindowSize = {
|
||||||
|
width: newBounds.width,
|
||||||
|
height: newBounds.height
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
get webContentsView () {
|
get webContentsView () {
|
||||||
|
|
Loading…
Reference in a new issue