fix: pass down the bool value of enableAutoSize to setSize (#13282)
* fix: pass the boolean value of enableAutoSize to setSize The webContents setSize API takes in an optional enableAutoSize boolean. Looking in the code, if that property is set, regardless if you pass in true or false, it will always set it to true. This change passes the appropriate boolean value down properly. * creating new bool for autosize
This commit is contained in:
parent
13f97b4cae
commit
137aaf2429
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ struct Converter<atom::SetSizeParams> {
|
|||
return false;
|
||||
bool autosize;
|
||||
if (params.Get("enableAutoSize", &autosize))
|
||||
out->enable_auto_size.reset(new bool(true));
|
||||
out->enable_auto_size.reset(new bool(autosize));
|
||||
gfx::Size size;
|
||||
if (params.Get("min", &size))
|
||||
out->min_size.reset(new gfx::Size(size));
|
||||
|
|
Loading…
Reference in a new issue