From efdaf0e34119546c463a52a40db3e66f42f9c54c Mon Sep 17 00:00:00 2001 From: rafael-aero Date: Thu, 26 Aug 2021 15:59:52 +0200 Subject: [PATCH] remove defaultvaluehandling setting as this breaks some cases (like X:0 on browser view set bounds) --- ElectronNET.API/BridgeConnector.cs | 1 - ElectronNET.API/BrowserView.cs | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ElectronNET.API/BridgeConnector.cs b/ElectronNET.API/BridgeConnector.cs index ccf3171..9f939cd 100644 --- a/ElectronNET.API/BridgeConnector.cs +++ b/ElectronNET.API/BridgeConnector.cs @@ -451,7 +451,6 @@ namespace ElectronNET.API { ContractResolver = new CamelCasePropertyNamesContractResolver(), NullValueHandling = NullValueHandling.Ignore, - DefaultValueHandling = DefaultValueHandling.Ignore }; } } diff --git a/ElectronNET.API/BrowserView.cs b/ElectronNET.API/BrowserView.cs index 09a44cb..cd29dfe 100644 --- a/ElectronNET.API/BrowserView.cs +++ b/ElectronNET.API/BrowserView.cs @@ -33,6 +33,10 @@ namespace ElectronNET.API /// public Task GetBoundsAsync() => BridgeConnector.OnResult("browserView-getBounds", "browserView-getBounds-reply" + Id, Id); + /// + /// Set the bounds of the current view inside the window + /// + /// public void SetBounds(Rectangle value) { BridgeConnector.Emit("browserView-setBounds", Id, value);