Set bounds size to content size

This commit is contained in:
Kevin Sawicki 2016-07-29 09:56:02 -07:00
parent a868bffd73
commit 4f90abce23

View file

@ -545,7 +545,9 @@ gfx::Rect NativeWindowViews::GetBounds() {
}
gfx::Rect NativeWindowViews::GetContentBounds() {
return window_->GetClientAreaBoundsInScreen();
gfx::Rect bounds = window_->GetClientAreaBoundsInScreen();
bounds.set_size(GetContentSize());
return bounds;
}
gfx::Size NativeWindowViews::GetContentSize() {