• Resolved leanne17

    (@leanne17)


    I am trying to use the PDF Embedder plugin in the toggle widget but the embedded pdfs show up as tiny boxes.

    The plugin FAQs say that I need to implement the following java script to force the window to revise after the tab is opened.

    window.dispatchEvent(new Event(‘resize’));

    I don’t know my way around java script. Has anyone done this and provide some guidance. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter leanne17

    (@leanne17)

    After doing some research I’ve found people have had the same problem with accordion modules in another drag and drop page editor.

    The suggested code to fix the issues was this

    jQuery( function(){
    jQuery( ‘.fl-accordion’ ).on( ‘fl-builder.fl-accordion-toggle-complete’, function(){
    try {
    window.dispatchEvent(new Event(‘resize’));
    } catch( e ) {
    var ev = document.createEvent(‘Event’);
    ev.initEvent(‘resize’, true, true);
    window.dispatchEvent(ev);
    }
    } );
    } );

    I could use some help modifying it for Elementor’s toggle widget.

    Thanks.

    • This reply was modified 7 years, 6 months ago by leanne17.

    Hi Leanne17 did you mage to fix your code? im kind of looking the same thing. Any advice?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Toggle widget resize window when open’ is closed to new replies.