win: Reserve border space for maximized frameless window

Fixes #732.
This commit is contained in:
Cheng Zhao 2014-12-15 16:00:16 -08:00
parent 3d30e6ddc4
commit 0ab32bfe17
3 changed files with 38 additions and 4 deletions

View file

@ -221,7 +221,7 @@ NativeWindowViews::NativeWindowViews(content::WebContents* web_contents,
#endif
// Add web view.
SetLayoutManager(new MenuLayout(kMenuBarHeight));
SetLayoutManager(new MenuLayout(this, kMenuBarHeight));
set_background(views::Background::CreateStandardPanelBackground());
AddChildView(web_view_);