Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author jjcoder

    (@jjcoder)

    Hey khabaroff,

    There isn’t anything currently that does this.

    You could put this in the afterChange callback:

    function() { var c = jQuery('#slider a.nivo-imageLink:visible img, div#slider img.nivo_image:visible');jQuery('#slider').height(c.height()); }

    substitute #slider for #<html_id>

    Might not look that nice tho.

    If you wanted to do width as well something like this.

    function() { var c = jQuery('#slider a.nivo-imageLink:visible img, div#slider img.nivo_image:visible');jQuery('#slider').height(c.height()).width(c.width()); }

    Regards,

    JJ Coder

    gerizmones

    (@gerizmones)

    hi,

    images have different height in my slider, so i want the slider height to adjust to the current image height.

    i tried to use the example and my full shortcode looks like that:

    [jj-ngg-jquery-slider html_id=”about-slider” gallery=”15″ width=”300″ height=”420″ afterChange=”function() { var c = jQuery(‘#<about-slider> a.nivo-imageLink:visible img, div#<about-slider> img.nivo_image:visible’);jQuery(‘#<about-slider>’).height(c.height()); }” effect=”fade” directionnav=”false” controlnavthumbs=”nextgen_thumbs” thumbscontainerheight=”60″ thumbsgap=”5″ thumbswidth=”50″ thumbsheight=”50″ pauseonhover=”true” keyboardnav=”true” manualadvance=”true”]

    but it does not work. what could be wrong? (removing height=”420″ does not work)

    thnx,
    geri

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: JJ NextGen JQuery Slider] Autoheight’ is closed to new replies.