Parameters in webContents.enableDeviceEmulation have no effect


#1

Hi the parameter options of enableDeviceEmulation seem to have no effect for me.

http://electron.atom.io/docs/v0.36.3/api/web-contents/#webcontents-enabledeviceemulation-parameters

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.


#2

I have the same problem , do you solve it ?