WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Lightbox Plus] Finally got rid of scrollbars

[Resolved] [Plugin: Lightbox Plus] Finally got rid of scrollbars

  • Brilliant plugin, but I was finding it impossible to eliminate scrollbars in one of my sites using all combinations of maximum width, height, resize etc. It worked in some browsers but not others.

    Then I noticed there is a new setting in colorbox 1.3.0 to turn off scrollbars altogether. This isn’t yet carried through as an option in lightbox plus (1.6.3), so I’ve come up with a quick hack.

    Add a new line 165 in lightbox.php as follows

    $lightboxPlusJavaScript .= ‘ $lbp.fn.colorbox.settings.scrollbars = false;’.$this->EOL( );

    Hey presto – scrollbars gone in all browsers and a lovely clean popup.

    If that could now be a configurable option in lightbox plus it would make a great plugin even greater!

    http://wordpress.org/extend/plugins/lightbox-plus/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Lightbox Plus] Finally got rid of scrollbars’ is closed to new replies.
Skip to toolbar