Hi,
i’m using Visual Composer and want to show the PDFs in several Tabs. It works fine in the first tab but in the following ones not.
The second and following tabs won’t load the pdf (just show the toolbar) until you refresh the page or decrease/increase the browser window.
Couldn’t find any solutions online, do you have any ideas?
i’m using Visual Composer and want to show the PDFs in several Tabs. It works fine in the first tab but in the following ones not.
The second and following tabs won’t load the pdf (just show the toolbar) until you refresh the page or decrease/increase the browser window.
Couldn’t find any solutions online, do you have any ideas?
1 Answers
Hello,
Please try to add javascript code to the “tab loading” event or something similar:
Please try to add javascript code to the “tab loading” event or something similar:
PDFLightViewerApp.triggerRecalculateAllSizes();
Here is some information you can start with https://gist.github.com/obiPlabon/f802a63740f667bcec61f455fd9fa909
Please login or Register to submit your answer