Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366130

Summary: Thumbnails flashing as full size
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ClientAssignee: Susan McCourt <susan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mamacdon
Version: 0.3   
Target Milestone: 0.4 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2011-12-08 22:14:40 EST
I20111208, Chrome 16

When expanding or going into a Navigator folder containing images, I see a quick flash of the images at full size before they are resized as thumbnails. This looks bad.
Comment 1 Mark Macdonald CLA 2011-12-09 10:20:09 EST
Probably because the resizing is done inside an 'onload' handler on the thumbnails. Could we give a CSS max-width and max-height on the thumbnails instead?
Comment 2 Susan McCourt CLA 2011-12-09 13:00:46 EST
(In reply to comment #1)
> Probably because the resizing is done inside an 'onload' handler on the
> thumbnails. Could we give a CSS max-width and max-height on the thumbnails
> instead?

good idea, I'll try it.  
Marking M2, this problem has been around since 0.3 so I don't feel compelled to push a fix for M1.
Comment 3 Susan McCourt CLA 2011-12-12 16:10:30 EST
fixed.  There was a bunch of styling in the thumbnail creation that needed to be pulled out into a CSS class.  Adding max-width and height which allowed me to remove the "shrinking" post-load computation.