• Resolved bentonboomslang

    (@bentonboomslang)


    When my Portfolio Slideshow is presented the height of my <div class="portfolio-slideshow" ...> is always 30px smaller than that of my <img class="attachment-large" ... />

    This causes the navigation to slip underneath the image.

    Has anyone had this problem? What did you do about it?

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

    (@bentonboomslang)

    OK I’ve had a look through the code and I’ve found this line
    $(this).parent().css("height", $oht + $pht + $ht + $qht - 30);';

    When I got rid of the “-30” it seems to work fine now.

    So why is this “-30” there I wonder?

    Thanks for the plugin though it suits a lot of my projects brilliantly.

    B

    Plugin Contributor Dalton Rooney

    (@daltonrooney)

    Hey there,
    Yes, you’re not the first one to notice this problem. The calculations for the various possible bits of content (title, description, caption) in the slideshow are not exact and I discovered a lot of extra space was making it’s way in there. Sometimes 50px extra or more, depending on the theme! So I added that -30 as a kludge to make the container height reasonable for most themes… and I think it actually works most of the time.

    The problem is sometimes people don’t use captions or titles or don’t have much padding in their CSS and the -30 then hides the nav. So I need to think about this problem a little more… probably better to have the extra space, which can be fixed with a little CSS, than for people to have problems with the hidden nav.

    Or maybe I need to put an additional option in there for people to set the spacing themselves if they get into a problem?

    I’ll keep thinking about it. Definitely room for improvement.
    Cheers,
    Dalton

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Portfolio Slideshow] Height of image container is wrong’ is closed to new replies.