Use View::GetBoundsInScreen to compute content bounds
This commit is contained in:
parent
4f90abce23
commit
4751f971e2
1 changed files with 1 additions and 3 deletions
|
@ -545,9 +545,7 @@ gfx::Rect NativeWindowViews::GetBounds() {
|
|||
}
|
||||
|
||||
gfx::Rect NativeWindowViews::GetContentBounds() {
|
||||
gfx::Rect bounds = window_->GetClientAreaBoundsInScreen();
|
||||
bounds.set_size(GetContentSize());
|
||||
return bounds;
|
||||
return web_view_->GetBoundsInScreen();
|
||||
}
|
||||
|
||||
gfx::Size NativeWindowViews::GetContentSize() {
|
||||
|
|
Loading…
Reference in a new issue