Responsive browser window for custom modal dialog


I’m trying to create a responsive dialog window, but BrowserWindow defaults to 800x600, and it appears there’s no good way to make a “responsive” window that sizes to content without adding some javascript to measure and then call setSize. Has anyone else found a better way to do this?


I think this is what people are discussing here