remove defaultvaluehandling setting as this breaks some cases

(like X:0 on browser view set bounds)
This commit is contained in:
rafael-aero
2021-08-26 15:59:52 +02:00
parent 0728577c40
commit efdaf0e341
2 changed files with 4 additions and 1 deletions

View File

@@ -451,7 +451,6 @@ namespace ElectronNET.API
{
ContractResolver = new CamelCasePropertyNamesContractResolver(),
NullValueHandling = NullValueHandling.Ignore,
DefaultValueHandling = DefaultValueHandling.Ignore
};
}
}

View File

@@ -33,6 +33,10 @@ namespace ElectronNET.API
/// </summary>
public Task<Rectangle> GetBoundsAsync() => BridgeConnector.OnResult<Rectangle>("browserView-getBounds", "browserView-getBounds-reply" + Id, Id);
/// <summary>
/// Set the bounds of the current view inside the window
/// </summary>
/// <param name="value"></param>
public void SetBounds(Rectangle value)
{
BridgeConnector.Emit("browserView-setBounds", Id, value);