mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-21 22:45:20 +00:00
remove defaultvaluehandling setting as this breaks some cases
(like X:0 on browser view set bounds)
This commit is contained in:
@@ -451,7 +451,6 @@ namespace ElectronNET.API
|
||||
{
|
||||
ContractResolver = new CamelCasePropertyNamesContractResolver(),
|
||||
NullValueHandling = NullValueHandling.Ignore,
|
||||
DefaultValueHandling = DefaultValueHandling.Ignore
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user