Issues with reported "displayResolution" from context

Using javascript you should be able to call the normal methods for getting the window width/height since it’s an iFrame and JS will return the iFrame dimensions rather than relying on the context data?