Steps to Reproduce:
- Create a BrowserWindow
BrowserWindow browserWindow = await Electron.WindowManager.CreateWindowAsync(new BrowserWindowOptions
{
Width = 500,
Height = 500,
Frame = false,
Transparent = true
});
- Create a BrowserView(
BrowserView bv = await Electron.WindowManager.CreateBrowserViewAsync();)
- Set the Bounds of the BrowserView
var bounds = await browserWindow.GetBoundsAsync();
bv.Bounds = new Rectangle() { Height = bounds.Height, Width = bounds.Width, X = 0, Y = 0};
- Set the BrowserView(
browserWindow.SetBrowserView(bv))
If you set the bounds of the BrowserView before you call SetBrowserView the BrowserView's bounds will be {0,0,0,0}. Once you call SetBrowserView you can then set its bounds.