| Index: mojo/services/native_viewport/native_viewport_win.cc
|
| diff --git a/mojo/services/native_viewport/native_viewport_win.cc b/mojo/services/native_viewport/native_viewport_win.cc
|
| index 84bfdc37f7cf1fccc56aa429baf484309cbe59cb..52ff6cb6f0a27b0cb367fbd0f326695a4e65e5f0 100644
|
| --- a/mojo/services/native_viewport/native_viewport_win.cc
|
| +++ b/mojo/services/native_viewport/native_viewport_win.cc
|
| @@ -143,8 +143,11 @@ class NativeViewportWin : public gfx::WindowImpl,
|
| void OnWindowPosChanged(WINDOWPOS* window_pos) {
|
| if (!(window_pos->flags & SWP_NOSIZE) ||
|
| !(window_pos->flags & SWP_NOMOVE)) {
|
| - delegate_->OnBoundsChanged(gfx::Rect(window_pos->x, window_pos->y,
|
| - window_pos->cx, window_pos->cy));
|
| + RECT cr;
|
| + GetClientRect(hwnd(), &cr);
|
| + delegate_->OnBoundsChanged(
|
| + gfx::Rect(window_pos->x, window_pos->y,
|
| + cr.right - cr.left, cr.bottom - cr.top));
|
| }
|
| }
|
|
|
|
|