Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi i use the Media Gellery to view pictures and videos.
My question is where can I set the size for the image size that open in the lightbox.
The first time you click on a image, it opens, but not in the correct size size. When i close the lightbox and click again onto the image, it opens in the correct size.
1. first click
2. second click
Comments
Comment #1
Moloc CreditAttribution: Moloc commentedYou can define a image-style for the lightbox, where you can set the size. By default, the media_gallery_large style is used.
Goto: Home » Administration » Configuration » Media » File types » Manage file display » Gallery lightbox
I think, that the file_entity or media module sets the width and height properties, so this change in size should not happen. So this happens only the first time, you access the image in lightbox? If you clear the cache, close the browser and open the site again, it is displayed in the correct size?
Comment #2
b.one CreditAttribution: b.one commentedI got the same issue (described here : http://drupal.org/node/1872726 )
are you using firefox too ? for me it works well on Chrome
I think this is about the cache, I just made a test, I flush all caches, and the issue appears again...
Comment #3
b.one CreditAttribution: b.one commentedany idea to fix this ?
Comment #4
b.one CreditAttribution: b.one commentedHi,
as this issue has no solution yet, I found this module : http://drupal.org/project/galleryformatter
It does'nt replace Media gallery, but it overwrite the display of the gallery.
Install it, and Lightbox too, and then go to : structure -> content types -> gallery -> manage display -> full, and change the display with : jquery album!
Comment #5
jordilopezamat CreditAttribution: jordilopezamat commentedHave tried #4 , despite being a a radically diferent option in terms of format&design
it works fine for me,
This workaround solves the issue apparently, although having side effects
https://www.drupal.org/node/1872726
Comment #6
ivnish CreditAttribution: ivnish commented