Closed (outdated)
Project:
Media Gallery
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2011 at 06:44 UTC
Updated:
17 Sep 2018 at 12:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ao2 commented@tsvenson: are you referring in particular to images inside the colorbox?
I have found out why colorbox is not resizing large images with media_gallery, but I am not sure this is the same problem you are referring to.
Basically the
isImage()test in colorbox code is failing when href is in the form/media-gallery/lightbox/X/Y, and even forcing it to true won't work as that URL returns some generated HTML which is just put into the lightbox as is.Comment #2
Tragy commentedao2, have you found some quick fix for this problem?
I'm having a similar issue with large images, all my vertical images are cropped to 900px of height, I've searched for a hard-coded property to adjust this but had no luck.
Comment #3
secondgig commentedI just managed to fix the height issue that you refer to ao2 and Tragy by setting the width and height of the image within the colorbox to a set width and height , not the best of solutions but now the height works properly .
colorbox's own support suggests that the issue is because the image isn't loading before the colorbox decides on the width and height for the modal , they also state making sure the image has a width and height attribute is a workable fix or setting the width and height of the image within css as I've just stated.
Comment #4
TribalMan commentedsubscribe
Comment #5
harald_ commentedsubscribe
Comment #6
lsolesen commented@tsvenson Have you been working more with this?
Comment #7
tsvenson commented@lsolesen: Sorry no. Haven't actually used the module since I moved to Media 2.x and found it it wasn't working with it.
Comment #8
selinav commentedWhere do you change/pass the height and width value?
Comment #9
UrmasZ commentedWhat more info maintainer needs? There is enough information about this problem. Image is scaled to 900x900(default), but screen height is 760px and browser takes some room also. So viewing area height is 700px for example. If I open image on Colorbox, it should be resized from 900x900 to my browser's actual size, but it is not happening. This means that opened image does not fit into my screen. It forces me to scroll.
We need automatic resizing!
Changing scaling values is not solution and I do not want to use different lightbox.
Comment #10
lsolesen commentedThanks for your answers. You are more than welcome to provide a patch to fix this issue.
Comment #11
ivnish