Hugh Gibson schrieb:
I've added a fix to QxListViewContentCellImage.

Seems that both views are now correctly rendered.

They're correct in FF/Gecko with latest CVS code.

However, in IE6 I get no images in the iconHTML (left hand side) and just dots 
in the image (right hand side).

Looking at the actual XML in IE I see this for an image on the left:

<IMG style="FILTER: 
progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../themes/icons/crystalsvg/16/thumbnail.png',sizingMethod='scale');
 VERTICAL-ALIGN: middle; MARGIN-RIGHT: 4px" 
src="file:///D:/abling/Packages/AJAX/qooxdoo_cvs/qooxdoo/source/images/blank.gif">

I'm not familiar with the FILTER style - is it something that IE adds? However, 
it's interesting that it has the correct path to the image, whereas the src= 
entry has the old path.

This appears to be a bug in QxIconHTML._syncHTML - the code explicitly puts the 
blank image in if the browser is IE:

   vHtml.push(QxImageManager.buildUri(this._mshtml ?
                           QxConst.IMAGE_BLANK : this.getIcon()));

I don't know why that was explicitly done, so I'm not confident of fixing it. 
However, a patch is attached that might do the job - simply always using 
this.getIcon().

For the images on the right I get:

<IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FILTER: ; VERTICAL-ALIGN: top; BORDER-LEFT: 0px; 
BORDER-BOTTOM: 0px" height=1 src="../../themes/icons/crystalsvg/16/thumbnail.png" 
width=1>

Hence the source of the dots. The correct path is here but the size is wrong.

I'm looking at this but if you can see the obvious, Sebastian...

This filter needs the blank source as a rendering canvas for its alphaimageloader. This loader is needed to make it possible to render alpha channels in PNGs.

I think the problem of the rendering is, that there is no width and no height defined for the image. I've currently no idea how we can fix this, because of we don't have easy access to the separate cells of a listview.

Sebastian


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