-
Notifications
You must be signed in to change notification settings - Fork 5
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
PDF Viewer isn't loading when called in tabs or expanders #56
Comments
Hi @hamdi3, thanks for reporting the issue. There is an issue that looks similar (#53), I tried to look for the cause and for see if I could find a workaround but i did not manage. What I understood is that if the tab is not selected, the underlying iframe does not get the correct dimension and the pdf is not shown. I wish I could spend more time to try to fix it rapidly because is indeed an annoying problem. |
I've released the version 0.0.15. It's not yet officially published, but it's on pypi. Could you please give it a try? |
Here's the same results I've commented on the PR Thanks for the update and the new version :)
|
@hamdi3 feel free to close this issue |
When trying to render PDFs in a streamlit tab, it only works for the tab that is selected when the page loads.
I've also seen the same behavior when rendering inside streamlit extenders.
The code is as follows:
What I've tried so far:
I would really appreciate it if you have a workaround.
Thanks in advance!
EDIT: I've seen the other Issue with streamlit tabs so I was wondering if it is in your plans to fix it later and if it's the same issues with expenders.
The text was updated successfully, but these errors were encountered: