Closed iarry closed 8 years ago
Found the section bumping down albumImg
and fixed it.
Hi @iarry, can you post the snippet of code you modified, just in case someone needs to make the same adjustment?
Thank you in advance
Absolutely. I changed the for
loop on line 313
to compare sizes with the size I wanted instead of photoListItem
's height and width.
Originally it was
for (i = 0; i < $(result.data)[a].images.length; i++) {
if (
($(result.data)[a].images[i].height >= prefHeight && $(result.data)[a].images[i].width >= prefWidth) &&
($(result.data)[a].images[i].height <= albumImg.height && $(result.data)[a].images[i].width <= albumImg.width)
) {
albumImg = $(result.data)[a].images[i];
}
}
I changed the 3rd line to:
($(result.data)[a].images[i].height >= 200 && $(result.data)[a].images[i].width >= 200) &&
There's probably a better way than just hard coding it, but I'm very new to jQuery and just needed a quick fix.
Thanks man. I might add it as an option for plugin
I increased the size of the
fb-photo-thumb
class in css to be 234x234 px. Now the thumbnailsrc
image is still being scaled down to a smaller size, usually 130x130 px.