[resolved] [Plugin: Lightbox Plus] Finally got rid of scrollbars (3 posts)

  1. louverture
    Posted 5 years ago #

    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!


  2. Dan Zappone
    Posted 5 years ago #

    Hey thanks! I'll add that option into the next release.

    I appreciate the help.

  3. andreask
    Posted 5 years ago #

    Did you add this option? I can't find it in the latest release.

Topic Closed

This topic has been closed to new replies.

About this Topic