Hi the parameter options of enableDeviceEmulation seem to have no effect for me.
See code example in https://github.com/atom/electron/issues/4099
The browser opens with correct size as specified 480 x 640
But as soon as the devtools open with device emulation as mobile, the area of the page inside the browserwindow is 360x640.
Neither screenSize nor viewSize have any effect and seem to be ignored completely. As suggested in the issue I tried to postpone opening the dev tools to the latest event ‘did-finish-load’.
At this point I am not sure if this is a bug, of if I miss something here.