Closed (duplicate)
Project:
Lightbox2
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2009 at 01:08 UTC
Updated:
27 Aug 2009 at 22:04 UTC
Jump to comment: Most recent file
Comments
Comment #1
oerpli commentedthats exactly the problem i had.
actually i try to rewrite the overlay- behaviour as it sucks at the moment.
Comment #2
oerpli commentedi did change some parts in the "js/lightbox.js" and in the "css/lightbox.css" files.
1. The overlay- CSS- attributes (height: 100px; width: 100px; top/left: 0px; position: fixed;)
2. If the lightbox starts, "$('body').css('overflow','hidden');" disables the scrollbars and the #lightbox gets some little adjustments.
3. If you zoom in (enlarge the picture) body overflow will be set to auto again and the lightbox's css gets again.
4. After killing the lightbox the overflow will be also set to auto.
Maybe i've forgot some things and the structure may be very ugly, as i'm new to drupal and my programming- style is... somehow "different" :)
Remaining problems:
If the picture is enlarged, there's about 20px margin on the top, left and bottom, but the margin-right does not work correctly.
No idea why.
I hope it works for you, i've only debugged it with ff and opera as i'm on linux here.
Edit: Imho it also improves the behaviour of the lightbox slightly, maybe somebody else has a differing opionion here...
Comment #3
oerpli commentedHere's the patch (with git or something like this... no idea what it's called.
Comment #4
oerpli commentedOh, btw, the "top: 60px" or whatever is wrong, maybe it's better if you remove this.
No idea.
Comment #5
stella commentedDuplicate of #396918: Horizontal Scrollbar Appearing in Firefox