Zero window height without frame

I am creating a new window without a border in the Electron browser with its height and width set to 0, but at least in the windows, the window is displayed with some width and height.

Also, I did not load the contents inside.

var mainWindow = new BrowserWindow({ width: 0, height: 0, resizable: false, frame: false, center: true, show: true, 'use-content-size': false, 'always-on-top': true }); 

Is it possible to have a frameless window with 0 height / width?

+6
source share
1 answer

Browsers do not allow this, but you can do anything in hidden iframes. You can hide a special iframe using css (display: none;)

I suggest you use webmasters for multitasking background work

-2
source

Source: https://habr.com/ru/post/986183/


All Articles