Contrain size in ctor on non-resizable windows
This commit is contained in:
parent
4ec79d5d18
commit
38acc7090b
1 changed files with 6 additions and 0 deletions
|
@ -218,6 +218,12 @@ NativeWindowViews::NativeWindowViews(
|
|||
std::string window_type;
|
||||
if (options.Get(options::kType, &window_type))
|
||||
SetWindowType(GetAcceleratedWidget(), window_type);
|
||||
|
||||
if (!resizable_) {
|
||||
gfx::Size content_size = GetContentSize();
|
||||
SetContentSizeConstraints(
|
||||
extensions::SizeConstraints(content_size, content_size));
|
||||
}
|
||||
#endif
|
||||
|
||||
// Add web view.
|
||||
|
|
Loading…
Reference in a new issue