Forums

NextGEN Smooth Gallery
Possible offset issue in IE (2 posts)

  1. ninjadoll
    Member
    Posted 1 year ago #

    I have a great time using this plugin, and it works in every browser except IE (any version). I mostly use it without panels, so just as a .png slider, and with slide positions set to "center."

    Right now I have a project with a 1000x400px slideshow that looks terrific in all browsers except IE...for whatever reason, IE is pushing the slideshow to the left by 4px and lifting it 4px from the bottom. The result is an ugly white line along the right and bottom edges...looks pretty darned awful against a black-background page.

    I've tried fixing it with and without the iframe hack and have checked my stylesheet for any conflicts. Nothing found.

    I wonder, though, if it's got something to do with NextGen's settings itself, but I can't find which setting I'd change. If anyone knows or has a theory I'd appreciate hearing from you!

    http://wordpress.org/extend/plugins/nextgen-smooth-gallery/

  2. ninjadoll
    Member
    Posted 1 year ago #

    Wow, about 5 minutes after I posted this, I found the problem. It =is= in the frame hack. This apparently isn't an issue in other browsers, but if you find yourself needing to use the frame because of conflicts, like I did, here's how to modify it to your liking:

    Open the plugin file called nggSmooth.php. Right around line 100 you'll find:

    // Increases frame width and height by 3px in order to display the complete image on the inside.
        return "<p style=\"".nggSmoothAlign($info['align'], $info['margin'], "iframe")."\">
                  <iframe width=\"". ($info["width"]+3) ."px\" height=\"". ($info["height"]+3) ."px\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" name=\"smooth_frame_".rand()."\" src=\"" . BASE_URL . $frame_url . "\"></iframe>
                </p>";

    This is where you play with the position of the frame in which the show appears. Simply set +3 to +0 to get rid of an ugly border, or set +3 to +anything else if you want more of a border (like if you wanted a faux drop shadow).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic