It seems that the page scroll bars (both horizontal and vertical) are quickly bumped on and off when first loading an image in a lightbox or when changing to the next or previous image. This seems to happen only in non-IE browsers (I've seen it in Firefox and Opera so far), and it does seem to happen on the demo site from the module page. It's not a big issue, but it is a bit jarring to have the bars flick on and off for each image. I can post a video of what's happening if required.

Thanks!

Comments

stella’s picture

Category: bug » support
Priority: Normal » Minor
Status: Active » Closed (won't fix)

When viewing an image that is too large to fit in the browser window and when the zoom feature is enabled, I've noticed that the scrollbars change size. They change size to accommodate the larger image, but then when the image re-sizes the scrollbars must re-adjust. It's not something I've been able to control using the javascript and I think is more of a browser issue rather than lightbox. If someone can provide a patch that prevents this, then I will by all means test it out, but for now marking this issue as "won't fix".

Cheers,
Stella

kevbot’s picture

I've fixed this by editing lightbox.css and setting 'overflow: hidden' for #outerImageContainer. Since the width of #loading was set to 100% it was given the width of its parent element (imageContainer) which was, in my case, about 780px (dynamically determined based on display area). This would have been fine, but the #loading element is then positioned at 45% left, 40% top relative to its parent, which causes the right side of the loading element to end up off of the right edge of the page, forcing the browser to display the scroll bars. The same sort of thing goes for the page height. Setting overflow seems to fix this in both Firefox and Opera.

You could probably achieve the same effect by setting a pixel width for the loading div.

Thanks for the great module, and thanks to whoever made Firebug :P

The style rule for outerImageContainer now appears as so at line 14 of lightbox.css

#outerImageContainer {
  position: relative;
  background-color: #fff;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  min-width: 240px;
  overflow: hidden;
}
stella’s picture

Status: Closed (won't fix) » Fixed

patch applied to CVS - should be available in the next release. Thanks!

Cheers,
Stella

stella’s picture

Released in Lightbox2 6.x-1.6 and 5.x-2.6.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.