-
Notifications
You must be signed in to change notification settings - Fork 16.5k
Closed
Labels
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Problem Description
I am aware that currently the only setting items for BrowserView style are setBounds
and setBackgroundColor
.
https://www.electronjs.org/docs/latest/api/browser-view
Is there any way to set border-radius
(rounded corner) for BrowserView?
If not, I would be very happy to see it implemented.
Proposed Solution
I think it should be implemented in the constructor or instance method of BrowserView.
// in constructor
const view = new BrowserView({
borderRadius: 12,
});
// instance method
view.setBorderRadius(12);
Alternatives Considered
I have tried editing the HTML within webContents, but adding border-radius
to <html />
does not work (children do not fit).
Additional Information
No response
M5150, jordancde, FoliageOwO, tri2820, RonkTsang and 21 moredongwenxiao and nunocoracao