loading problems second VC Tabs

QuestionsCategory: PDF Light Viewerloading problems second VC Tabs
Anonymous asked 5 months ago

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?

1 Answers
super answered 5 months ago

Hello,
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