Contrain size in ctor on non-resizable windows

This commit is contained in:
Kevin Sawicki 2016-03-07 10:11:30 -08:00
parent 4ec79d5d18
commit 38acc7090b

View file

@ -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.