win: Fix GetContentSize for minimized window

This commit is contained in:
Cheng Zhao 2015-10-05 21:06:57 +08:00
parent 3b1ee994e2
commit 857acd2574

View file

@ -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();
}