Permlink Replies: 2 - Pages: 1 - Last Post: 17 Feb 26, 17:17 Last Post By: phil44 Threads: [ Previous | Next ]
phil44

Posts: 170
Registered: 18-Jun-2010
Bug report: the last thumbnails lazily loaded are too large
Posted: 13 Feb 26, 11:03
  Click to reply to this thread Reply
I have noticed that when using HiDPI thumbnails and the album page has more thumbnails than the Number of preloaded thumbnails setting, the thumbnails in the last row (therefore lazily loaded) are displayed at twice their size, provided that this last row is incomplete. This problem doesn't occur if HiDPI thumbnails is not selected.

This phenomenon can be seen in this album. It was built with Number of preloaded thumbnails set to 10. Therefore, the last two images are lazy-loaded.

It seems this phenomenon is caused by the instruction
this.style.width = el.style.height = '';
in main.js:168. I found a workaround by using a value close to 1 (e.g., 1.0001) instead of exactly 1 in lines main.js:1732/1735.

However, I'm not entirely sure this is the correct way to fix it, but it works...
Laza

Posts: 1,461
Registered: 6-Sep-2005
Re: Bug report: the last thumbnails lazily loaded are too large
Posted: 13 Feb 26, 13:07   in response to: phil44 in response to: phil44
  Click to reply to this thread Reply
Thanks! I have fixed this in PhotoBlogger's latest update, but I wasn't aware it also affected Tiger. I'll fix this soon.
phil44

Posts: 170
Registered: 18-Jun-2010
Re: Bug report: the last thumbnails lazily loaded are too large
Posted: 17 Feb 26, 17:17   in response to: Laza in response to: Laza
  Click to reply to this thread Reply
It works as expected now with v7.4.8, thanks !
Legend
Forum admins
Helpful Answer
Correct Answer

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