Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there a way for the Lightbox to appeare alway in the same place when the css position is set to fixed?
When a lightbox link is further down the page the lightbox shows up on the bottom of the page and when the page is scrolled to the bottom and a link is pressed it only shows half of the lightbox. It is still fixed but not on its correct original position.
Is there a way around this?
thanks
Comment | File | Size | Author |
---|---|---|---|
#3 | lightbox2-position-fixed-963752.patch | 4.91 KB | AaronBauman |
#2 | lightbox2-position-fixed-963752.patch | 4.93 KB | AaronBauman |
Comments
Comment #1
pedromvpg CreditAttribution: pedromvpg commentedComment #2
AaronBaumanYou can do this in a CSS file, but the "top" CSS attribute of the box will get messed up because of this line right here in lightbox2.js:
This patch doesn't change the default behavior, position:absolute, but allows admins to change it through lightbox2 settings at
admin/settings/lightbox2 > Advanced Settings > Skin Settings > CSS Position
This is rolled at 6.11, but it should apply to dev
Comment #3
AaronBaumanFixed a typo. Should work now.
Comment #4
NineAllexis CreditAttribution: NineAllexis commentedHaving the same issue on D7.
Applied the patch (manually), set the position top on admin/config CSS settings.
Somehow the pixels set doesn't work, it keeps set back to top:10px.