• Resolved Delete Profile!

    (@florianx)


    I use SU on nearly all pages of my website. The plugin is really great!

    There is a subject concerning pdf files in a spoiler or tab. The first pdf is shown on right size. Switching to another tab, the size is broken.

    I found this answer at the pdf-embedder (https://wp-pdf.com/kb/ ==> topic “The viewer doesn’t display at all (or at wrong size) when inside a Javascript based tab or ajax page transitions”):

    If you attempt to embed the PDF viewer within a tab that is controlled by Javascript, you may find that it does not display at the correct size when the tab is opened. If you resize the browser window slightly, it should jump to the correct size. This is because the size was calculated when the tab was closed, and wasn’t updated for the size of the opened tab.

    I think this describes exactly my subject.

    Unfortunately, I’m not familiar with wordpress-programming. So, I cannot realize the solution, pdf-embedder presents. Also, I think, this is a general problem.

    Do you see the possibility to implement something like …… this:

    <script>
         jQuery('div.tab-title').on('click',function() {
            setTimeout(
            function() {
              window.dispatchEvent(new Event('resize'));
           },
           100
           );
        });
     </script>

    Would be great – thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘pdf’ is closed to new replies.