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 to set the lightbox frame to a fixed width and height
Thanks
Marcel
Comments
Comment #1
chaloum CreditAttribution: chaloum commentedBump
Does anyone know how to do this?
thanks
Comment #2
chaloum CreditAttribution: chaloum commentedbump
Comment #3
Moloc CreditAttribution: Moloc commentedThere is no User Interface, to configure that.
If you still like to configure that, you need to modify the media_gallery source (Note: If you install a newer release of media_gallery, your changes will be lost.).
colorbox-display.js in the media_gallery module:
find: innerWidth: 'auto',
replace it with:
and replace
with
This should do, what you like.
If you like to configure that in a UI, you may wait, until such a feature gets commited (for example see #1053674: Integrate with colorbox module).
If this does not solve your problem, feel free to reopen the issue.