In Windows 10, it is possible to run Internet Explorer 11 in emulation mode to make it pretend it is Edge (opening the dev tools with F12, going in the "Emulation" tab, selecting the user agent string "Microsoft Edge"). When opening a SmartGWT application whose onModuleLoad() only contains:
VLayout v = new VLayout();
v.draw();
I get the following warning in the browser console:
Element:getComputedStyle: Unable to get DOM element specified by 'null'
immediately followed by an exception:
Unable to get property 'paddingLeft' of undefined or null reference
that is thrown from isc_c_Element_deriveStyleProperties in ISC_Core.js.
This is a problem for us because we are writing a plugin for the AP ENPS software, and it is this embedded IE version with this emulation mode that is used to host HTML content inside this software when it runs on Windows 10.
When this happens, IE uses the user agent string: "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0".
In case it helps, here are some of the values returned by isc.Browser.isXXX:
isEdge: true
isSafari: true
isIE: false
isIE10: false
isIE11: false
isChrome: false
isFirefox: false
isMoz: false
isOpera: false
SmartGWT version obtained with isc.version: "SNAPSHOT_v11.1d_2017-01-05/LGPL Development Only"
VLayout v = new VLayout();
v.draw();
I get the following warning in the browser console:
Element:getComputedStyle: Unable to get DOM element specified by 'null'
immediately followed by an exception:
Unable to get property 'paddingLeft' of undefined or null reference
that is thrown from isc_c_Element_deriveStyleProperties in ISC_Core.js.
This is a problem for us because we are writing a plugin for the AP ENPS software, and it is this embedded IE version with this emulation mode that is used to host HTML content inside this software when it runs on Windows 10.
When this happens, IE uses the user agent string: "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0".
In case it helps, here are some of the values returned by isc.Browser.isXXX:
isEdge: true
isSafari: true
isIE: false
isIE10: false
isIE11: false
isChrome: false
isFirefox: false
isMoz: false
isOpera: false
SmartGWT version obtained with isc.version: "SNAPSHOT_v11.1d_2017-01-05/LGPL Development Only"
Comment