gtk: Respect use-content-size when creating window.
This commit is contained in:
parent
76cc3eeb6d
commit
511a49f6fb
1 changed files with 3 additions and 2 deletions
|
@ -114,8 +114,9 @@ NativeWindowGtk::NativeWindowGtk(content::WebContents* web_contents,
|
||||||
options->GetInteger(switches::kWidth, &width);
|
options->GetInteger(switches::kWidth, &width);
|
||||||
options->GetInteger(switches::kHeight, &height);
|
options->GetInteger(switches::kHeight, &height);
|
||||||
|
|
||||||
// Fixup the initial window size.
|
bool use_content_size = false;
|
||||||
if (has_frame_)
|
options->GetBoolean(switches::kUseContentSize, &use_content_size);
|
||||||
|
if (has_frame_ && !use_content_size)
|
||||||
SubstractBorderSize(&width, &height);
|
SubstractBorderSize(&width, &height);
|
||||||
|
|
||||||
// Force a size allocation so the web page of hidden window can have correct
|
// Force a size allocation so the web page of hidden window can have correct
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue