Title: [Plugin: NextGEN Gallery] tiny bug fix!
Last modified: August 20, 2016

---

# [Plugin: NextGEN Gallery] tiny bug fix!

 *  [saill](https://wordpress.org/support/users/saill/)
 * (@saill)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-tiny-bug-fix/)
 * Hi Alex,
 * I LOVE your gallery – thank you so much for writing it!
 * I found and fixed a tiny bug that was cutting off the bottom borders of the tallest
   pics in the slideshow. Problem was that the height of the ngg-slideshow div was
   the same as the height of the tallest image, causing the lower border of the 
   image to fall outside the div and get cut off.
 * I fixed the problem by changing lines 119 – 122 of nggfunctions.php to:
 *     ```
       $height = (int) $height;
           $divheight = $height + 20;
   
           $out  = '<div id="' . $anchor . '" class="' . $class . '" style="height:' . $divheight . 'px;width:' . $width . 'px;">';
       ```
   
 * That gives the image a little padding on the bottom, and the border shows up 
   perfectly now.
 * Saill
 * [http://wordpress.org/extend/plugins/nextgen-gallery/](http://wordpress.org/extend/plugins/nextgen-gallery/)

The topic ‘[Plugin: NextGEN Gallery] tiny bug fix!’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [saill](https://wordpress.org/support/users/saill/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-tiny-bug-fix/)
 * Status: not resolved