Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_view_mus.cc |
| diff --git a/content/browser/renderer_host/render_widget_host_view_mus.cc b/content/browser/renderer_host/render_widget_host_view_mus.cc |
| index 08e0058c355185bd42011ae0efded45d41c93d59..8a12e156e7579eebcb81a6de935a2804f4a0e5a9 100644 |
| --- a/content/browser/renderer_host/render_widget_host_view_mus.cc |
| +++ b/content/browser/renderer_host/render_widget_host_view_mus.cc |
| @@ -62,7 +62,12 @@ bool RenderWidgetHostViewMus::IsShowing() { |
| void RenderWidgetHostViewMus::SetSize(const gfx::Size& size) { |
| size_ = size; |
| - window_->window()->SetBounds(gfx::Rect(size)); |
| + gfx::Rect bounds = window_->window()->bounds(); |
| + // TODO(fsamuel): figure out position. |
|
Ben Goodger (Google)
2015/12/01 18:44:14
I suspect you'll end up needing to have an aura::W
Peng
2015/12/01 19:41:38
Talked to fsamuel, and he will take care of it.
A
|
| + bounds.set_x(10); |
| + bounds.set_y(150); |
| + bounds.set_size(size); |
| + window_->window()->SetBounds(bounds); |
| host_->WasResized(); |
| } |