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.
The fixed setting does not appear to be working.
Other settings such as opacity are working fine, however fixed is not. The setting is reflecting in the source code of the page however not being applied to colorbox.
I'm using "colorbox-inline", have not tested using "colorbox-load"
Ended up having to remove "colorbox-inline" completly and trigger colourbox through a custom module which works however should not be necessary.
The colorbox fixed setting does work when calling colorbox from a the module js file so it's not a problem with colorbox itself.
This works:
$('.select-image a').colorbox({
"href":"#image-popup",
"transition":"elastic",
"speed":"350",
"opacity":"0.85",
"slideshow":false,
"slideshowAuto":true,
"slideshowSpeed":"2500",
"slideshowStart":"start slideshow",
"slideshowStop":"stop slideshow",
"current":"{current} of {total}",
"previous":"\u00ab Prev",
"next":"Next \u00bb",
"close":"Close",
"overlayClose":true,
"maxWidth":"98%",
"maxHeight":"98%",
"width":"930",
"height":"500",
"fixed":true,
"inline":true,
"scrolling":true,
"mobiledetect":true,
"mobiledevicewidth":"480px"
});
Comments
Comment #1
Andrew211 CreditAttribution: Andrew211 commentedComment #2
Andrew211 CreditAttribution: Andrew211 commentedComment #3
frjo CreditAttribution: frjo commented