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

Bug 284801

Summary: Pass image sizes to client
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: tbuschto
Version: 1.3   
Target Milestone: 1.3 M1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 284713    

Description Ralf Sternberg CLA 2009-07-27 16:09:25 EDT
On the client, images are preloaded and measured by qooxdoo before layouting.
Since we already know the size of SWT Images and can easily determine the size of theming images, we should pass the sizes to the client to speed up layouting and get rid of the preloading.

The MultiCellWidget from bug 284713 already requires image sizes to be rendered by the server.
Comment 1 Tim Buschtoens CLA 2009-07-29 09:25:59 EDT
Done for push-button in Attachment 142883 [details] for Bug 284713
	

Comment 2 Ralf Sternberg CLA 2009-08-04 10:19:31 EDT
Sizes of theming image are now also determined and passed onto the client.
The client-side ThemeStore holds an array of [ url, widht, height ] for every image.

To actually use this size, we need to add some functionality to ThemeValues.js.
Comment 3 Ralf Sternberg CLA 2009-08-04 12:15:25 EDT
As a consequence, we need to throw an exception when a theme image can't be read.
Note that it might also happen that an image is understood by the browser but not by our image reader.
Changed QxImage accordingly.