зеркало из https://github.com/electron/electron.git
fix: update `BrowserView#lastWindowSize` after window resize (#43463)
fix: update BrowserView#lastWindowSize after window resize (#43462)
This commit is contained in:
Родитель
8c5e7bbf6b
Коммит
e2fe8f50e2
|
@ -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 () {
|
||||
|
|
Загрузка…
Ссылка в новой задаче