mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-17 21:26:37 +00:00
always keep default values when creating window
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user