File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
NetworkDynamicsInspector/src Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -172,10 +172,8 @@ function _resize_electron_to_content()
172172 """
173173 y = run (window, js_max_h)
174174
175- run (get_electron_app (), """
176- {
177- let win = BrowserWindow.fromId($(window. id) )
178- win.setSize(win.getSize()[0], $y )
179- }
180- """ )
175+ oldres = CURRENT_DISPLAY[]. resolution
176+ resolution = (oldres[1 ], y)
177+ CURRENT_DISPLAY[] = ElectronDisp (; resolution)
178+ get_electron_window () # trigger resize
181179end
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ using Electron
1212
1313
1414@info " Create global electron window"
15- NDI. CURRENT_DISPLAY[] = ElectronDisp (resolution= (1200 ,1020 )) # hide
15+ NDI. CURRENT_DISPLAY[] = ElectronDisp (resolution= (1200 ,800 )) # hide
1616NDI. get_electron_window ()
1717
1818links = InterLinks (
You can’t perform that action at this time.
0 commit comments