Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect value for zoom inside iframe in Chrome #51

Open
TCampaigne opened this issue Jun 30, 2014 · 1 comment
Open

Incorrect value for zoom inside iframe in Chrome #51

TCampaigne opened this issue Jun 30, 2014 · 1 comment

Comments

@TCampaigne
Copy link
Contributor

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?

@kumar003vinod
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants