> Attached is a simple test.  I have two QxListViews, one using
> a column of type "iconHtml", and the other is using "image".
> 
> Each is created with no data rows.
> 
> Each has a "Populate" button that will load three rows of data
> into them.  I have attached "before and after" screenshots of
> the list views.
> 
> In the iconHtml listview, I get broken images in the empty rows.
> 
> In the image listview, I get no broken images, but I get 1x1 images
> (the tiny dots in the screenshot) in the populated rows.

I've started looking at this issue. I hacked the example so it would work 
against the source code when put in the demo/examples folder.

I'm looking at the "image" column problem first, under FF.

I added code to QxImagePreloader to change the getWidth and getHeight functions 
to include a debug log of the width and height, along with the image name.

On initial loading I saw a load of this in the debug log:

019058: ../../images/blank.gif: width = 1
019068: ../../images/blank.gif: height = 1

On pressing the Populate button there are no further entries, even though the 
images are loaded at that point.

The HTML created for the image specified as:

                    images:  { source: "icons/16/thumbnail.png" },

was:
                    
<img width="1" height="1" style="border: 0pt none ; vertical-align: top;" 
src="../../themes/icons/crystalsvg/16/thumbnail.png"/>

I put in the full path to a picture, just in case the image manager was causing 
a problem:

                    images:  { source: 
"d:/abling/packages/ajax/qooxdoo/qooxdoo-play/source/themes/icons/crystalsvg/16/thumbnail.png"
 },

This gave the HTML:

<img width="1" height="1" style="border: 0pt none ; vertical-align: top;" 
src="d:/abling/packages/ajax/qooxdoo/qooxdoo-play/source/themes/icons/crystalsvg/16/thumbnail.png"/>

The image preloader is not being called again, so something else is being used 
to get the image sizes. 

Any ideas, Sebastian? 

I'll take another look tomorrow.

Hugh

> > Good question. In my test-cases this seems to work always. 
> > Can you send us an (small) example which shows this problem?
> 
> Attached is a simple test.  I have two QxListViews, one using
> a column of type "iconHtml", and the other is using "image".
> 
> Each is created with no data rows.
> 
> Each has a "Populate" button that will load three rows of data
> into them.  I have attached "before and after" screenshots of
> the list views.
> 
> In the iconHtml listview, I get broken images in the empty rows.
> 
> In the image listview, I get no broken images, but I get 1x1 images
> (the tiny dots in the screenshot) in the populated rows.
> 
> I don't have any path initialization code in my example JavaScript,
> but I don't think I need it, since I recompiled qooxdoo with custom
> path settings in QxSettings.js.
> 
> I hope I'm not doing something wrong and wasting your time.  Maybe
> this time, it will be a legitimate issue!  :-)
> 
> Thanks for any insight.


Hugh


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to