This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 4 - Pages: 1 - Last Post: 20-Sep-2017 00:15 Last Post By: andomare
andomare

Posts: 31
Registered: 14-May-2012
calculation of height of card with folder thumbnail has changed
Posted: 18-Sep-2017 01:47
 
  Click to reply to this thread Reply
This is a very special question about the internal operation of the calculation of the row height for folder thumnails.
The algorithm must have been changed, which leads now to an unwanted row-height:

jAlbum 14.0.6 & Tiger 1.0.10:
<div class="thumbnails row caption-below small-up-1 medium-up-2 large-up-3">
<div class="column"><div class="card preload" style="height: 145px;">

jAlbum 14.1.10 & Tiger 1.3.12
<div class="thumbnails row caption-below small-up-1 medium-up-2 large-up-3">
<div class="column"><div class="card folder" style="height: 104px;">

When the page is loaded in the new version, it is displayed very shortly (< 0.5sec) without the thumbnails but with correct size of the "card" (I assume 145pix). Then the thumbnails are displayed and the card is shrinked to 104pix. :-(

I searched for some hours now but couldn't find the reason for the new, wrong, calculation in my case. Too many things have changed in the js code betwen the two versions.

Can you help Laca?
Laza

Posts: 9,472
Registered: 6-Sep-2005
Re: calculation of height of card with folder thumbnail has changed
Posted: 18-Sep-2017 12:03   in response to: andomare in response to: andomare
 
  Click to reply to this thread Reply
The skin is using the larger version (folderthumb.jpg) when the resolution isn't enough for the folders. I might have to make these folderthumbs the same aspect ratio as the normal images to avoid such differences. Originally they were created for the Facebook shares and are sized to fit for this purpose.
andomare

Posts: 31
Registered: 14-May-2012
Re: calculation of height of card with folder thumbnail has changed
Posted: 19-Sep-2017 09:18   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Hmm, but do you have a tip what I can do to get the old height used?

The folderimage is 900×180. The created folderthumb results in 600x147.
I don't understand why the the actual version calculates 104px as height.
Can you please tell me the code-position where this is calculated?

Attached you find a screenshot with the old version in comparision to the new version.
Laza

Posts: 9,472
Registered: 6-Sep-2005
Re: calculation of height of card with folder thumbnail has changed
Posted: 19-Sep-2017 19:21   in response to: andomare in response to: andomare
Helpful
  Click to reply to this thread Reply
In sections.inc change:
useHires = false;

This way it will work as before. BTW, the skin doesn't calculate the height, it just defines the crop boundaries, e.g. 640x480.
andomare

Posts: 31
Registered: 14-May-2012
Re: calculation of height of card with folder thumbnail has changed
Posted: 20-Sep-2017 00:15   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Thank you very much, this change makes it working again for me !!
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums