always keep default values when creating window

This commit is contained in:
theolivenbaum
2021-09-06 12:39:32 +02:00
parent 172f6ded3f
commit a3fb411d8a
2 changed files with 8 additions and 2 deletions

View File

@@ -126,10 +126,10 @@ namespace ElectronNET.API
if (options.X == -1 && options.Y == -1)
{
options.X = 0;
options.X = 0; //This is manually removed by the browserWindows.js code before creating the window
options.Y = 0;
BridgeConnector.Emit("createBrowserWindow", guid, JObject.FromObject(options, _jsonSerializer), loadUrl);
BridgeConnector.Emit("createBrowserWindow", guid, JObject.FromObject(options, _keepDefaultValuesSerializer), loadUrl);
}
else
{