[Xerte] _ytile issue

Dave Burnett d_b_burnett at hotmail.com
Wed Apr 25 13:49:32 BST 2012



I'm duplicating and then setting properties on some text icons.
The icons have a y property of _ytile+25.Works as expected when there is simple text set in the node.
But if I add an image to that text:icon.nextSibling.childNodes[0].childNodes[i].firstChild.nodeValue = '<img src="common/lucio.jpg"/><b>' + colone_array[i]+ '</b>';
it no longer tiles correctly. They overlap as if the plain text is still being used as the _ytile registration point.
The odd thing is that following the setup of those icons, I colour the text background:icon.parentNode.childNodes[i].clip().txt.backgroundColor= 0xFFF8C6;
It sets up correctly. e.g. it is correctly seeing the graphic as part of the .txt object and colours the area holding both text and image. 
So _ytile is not seeing the y extent of the object but clip() is?
Dave  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120425/5fab49b9/attachment.html>


More information about the Xerte mailing list