Set bounds size to content size
This commit is contained in:
parent
a868bffd73
commit
4f90abce23
1 changed files with 3 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue