Remember me

image size in lightbox

7 years 3 months ago #1

  • Laurens's Avatar
  • Laurens
thanks for the amazing extension, really find it fitting my needs perfectly.

just 1 question, I've enabled the auto adjust for lightbox view, so it fits my screens nicely.

what I would like to do is have the image only use a x percentage of the screen, so lightbox in full screen but the picture leaving some space on the left & right or top& bottom (this way the picture is not overwelming but shows nicely).

is there a way I can set this size the picture is using in the total lightbox space?

7 years 3 months ago #2

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858

To change the spacing you need at the ba-gallery.js (components/com_bagallery/assets/js/ba-gallery.js)
on lines 1661 and 1662 ,for mobile lines 1201-1202 change multiplier.

you need to play with these values

More details here:


7 years 3 months ago #3

  • Laurens's Avatar
  • Laurens
thanks, will this also align the picture to the center?

7 years 3 months ago #4

  • Artem's Avatar
  • Artem
  • Posts: 11342

yes, image will be aligned to the center

Powered by Kunena Forum