Support » Plugin: WP Flow Plus » Reinitialise for hidden galleries

  • Resolved chillfinn



    is there a good method for re-initialising galleries if they are contained in previously hidden elements?

    For example I’m trying to have multiple galleries inside jquery tabs (and I’m using 100% width for the galleries). Problem is that when you reveal a hidden div, the imageflow gallery inside can’t draw itself as it doesn’t yet know the dimensions of the containing area.

    Nice work otherwise!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You would need to trigger the javascript to run on the button press that reveals the div, rather than on the page load.


    But how can I do that with the way it’s integrated in wordpress?

    So I’m calling it my template file like this:
    <?php echo do_shortcode(‘[wp-imageflow2 dir=ipad startimg=5]’); ?>

    But then I’d need to call it again when the div is actually visible, just wondering how, so far if I try to run something like the following (inside an event function):

    var imageflow2_1 = new imageflowplus(1);
    imageflow2_1.init( {conf_autorotate: “on”, conf_autorotatepause: 3000, conf_startimg: 5}

    Nothing much happens 🙁

    The plugin can’t handle this without some hacking to do what you want.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Reinitialise for hidden galleries’ is closed to new replies.