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()
172
172
"""
173
173
y = run (window, js_max_h)
174
174
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
181
179
end
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ using Electron
12
12
13
13
14
14
@info " Create global electron window"
15
- NDI. CURRENT_DISPLAY[] = ElectronDisp (resolution= (1200 ,1020 )) # hide
15
+ NDI. CURRENT_DISPLAY[] = ElectronDisp (resolution= (1200 ,800 )) # hide
16
16
NDI. get_electron_window ()
17
17
18
18
links = InterLinks (
You can’t perform that action at this time.
0 commit comments