mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
win: Fix GetContentSize for minimized window
This commit is contained in:
@@ -443,6 +443,11 @@ gfx::Rect NativeWindowViews::GetBounds() {
|
||||
}
|
||||
|
||||
gfx::Size NativeWindowViews::GetContentSize() {
|
||||
#if defined(OS_WIN)
|
||||
if (IsMinimized())
|
||||
return NativeWindow::GetContentSize();
|
||||
#endif
|
||||
|
||||
return web_view_->size();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user