You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the merge of #50, it appears that Chrome will report an incorrect value of the zoom level when inside an iframe of different width to the parent frame. window.outerWidth seems to always reference to the total browser width, whereas window.innerWidth references just the current frame's width.
Unfortunately, it seems Chrome does not allow cross domain access to top.innerWidth so I am not sure of a way to get a proper value to compare against window.outerWidth. Any thoughts on how we might be able to support iframes in Chrome?
The text was updated successfully, but these errors were encountered:
If we use window.top.outerWidth and window.top.innerWidth and the iframe contains page that served from the same host, port and with same protocol, then it gives the correct value of zoom.
With the merge of #50, it appears that Chrome will report an incorrect value of the zoom level when inside an iframe of different width to the parent frame.
window.outerWidth
seems to always reference to the total browser width, whereaswindow.innerWidth
references just the current frame's width.Unfortunately, it seems Chrome does not allow cross domain access to
top.innerWidth
so I am not sure of a way to get a proper value to compare againstwindow.outerWidth
. Any thoughts on how we might be able to support iframes in Chrome?The text was updated successfully, but these errors were encountered: