-
Notifications
You must be signed in to change notification settings - Fork 99
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
Hidden document viewer does not load pages in Firefox #40
Comments
Thanks for creating a reduced repro! I'm looking into this today, and I'll update this issue when I figure out the problem. |
There is a bug in Firefox where `window.getComputedStyle()` returns null if called in a hidden (`display:none`) iframe (https://bugzilla.mozilla.org/show_bug.cgi?id=548397), so we fallback to a default value if this happens.
Fix #40 - Hidden document viewer does not load pages in Firefox
Thanks for the fast response! Glad I could help. |
@lakenen - Is this fix available when using the iframe viewer URL? I'm still seeing the issue in firefox: http://jsbin.com/xezafoko/3 |
The updated viewer.js has not been pushed to the iframe viewer yet, but it will be soon (hopefully today or tomorrow). |
@jheth sorry for the delay. This should be live on view-api.box.com now. |
@lakenen - Thanks! I just tested it with http://jsbin.com/xezafoko/4 and see both documents now. The viewer in the hidden tab shows a different zoom level which I assume is due to the default ratio. |
We're seeing issues with viewer.js in Firefox where the document does not load when the containing element starts off as hidden.
Here's a jsbin example that works in Chrome and Safari but not in Firefox.
http://jsbin.com/xezafoko/1/edit
It shows a tabbed page where each tab contains a document viewer. The 2nd hidden tab starts to load but then stops and none of the pages are loaded.
The text was updated successfully, but these errors were encountered: