Box Content Previewer does not load document when element is hidden
We're embedding the Box Content Preview in our product and running into a problem. If the element passed to the previewer is attached to the dom, but initially hidden, the previewer (once shown) will be visible, but the document is not. The error "offsetParent is not set -- cannot scroll" appears in the console. If the window is resized or the previewer's zoom controls are used, the document will usually appear. A similar no-render occurred when we had previously tried using an embed link in a non-visible iframe. Has anyone else run into this? Everything works fine if the initial state of the element is visible, but loading a Box document that is not immediately shown is a common use case for us. Are there any workarounds?
-
Thanks for reporting this, please create an issue at https://github.com/box/box-content-preview/issues so we can properly track this, thanks!
-
Posting here for posterity 🙂
https://github.com/box/box-content-preview/issues/560
Excellent description!!
Please sign in to leave a comment.
Comments
2 comments