<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br>I'll file that.<div><br></div><div><span style="font-size: 10pt; ">I have a dirty workaround whereby I add enough <br>'s to the bottom of the text to stretch the box to the bottom of the image, then it just uses that for the _ytile and the image pops into place after the fact.</span></div><div><span style="font-size: 10pt; "><br></span></div><div><br></div><div><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br>Date: Wed, 25 Apr 2012 17:41:51 +0100<br>Subject: [Xerte] Re: _ytile issue<br><br><style><!--
.ExternalClass .ecxshape
{;}
--></style><style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass p.ecxecxmsochpdefault, .ExternalClass li.ecxecxmsochpdefault, .ExternalClass div.ecxecxmsochpdefault
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass span.ecxecxmsohyperlink
{;}
.ExternalClass span.ecxecxmsohyperlinkfollowed
{;}
.ExternalClass span.ecxecxemailstyle18
{;}
.ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1
{margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass span.ecxecxmsohyperlink1
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed1
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxecxemailstyle181
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass p.ecxecxmsochpdefault1, .ExternalClass li.ecxecxmsochpdefault1, .ExternalClass div.ecxecxmsochpdefault1
{margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:"Times New Roman","serif";}
.ExternalClass span.ecxEmailStyle28
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

--></style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Are the iamges of any particular size? Do you know up front how big the icons will be? Presumably not.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">You can do this:</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hang a proto page off a decision icon set to loop and not erase. In the page:</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">IMG //id= img</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">TEXT //if needed</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">INT</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  EVT //onLoad, set to exit</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">    SCR //do your stuff here – colour, keep track of the y coord.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">And then dupe the page for as many images as you’re loading. You can re-use the ‘img’ id, no need to set  ‘em.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="ecxMsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br><b>Sent:</b> 25 April 2012 17:34<br><b>To:</b> Xerte list<br><b>Subject:</b> [Xerte] Re: _ytile issue</span></p></div></div><p class="ecxMsoNormal" style="margin-left:36.0pt"> </p><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Thanks Jules, suspected as much.</span></p><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I guess I could move the _ytile to where I set the colour, as that seems to be measuring correctly.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">But that means assigning id's to stuff. :-/</span></p></div><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I'll see if there is a dirtier workaround in the html.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><div><div class="ecxMsoNormal" align="center" style="margin-left:36.0pt;text-align:center"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><hr size="2" width="100%" align="center" id="ecxstopSpelling"></span></div><p class="ecxMsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br>Date: Wed, 25 Apr 2012 17:26:48 +0100<br>Subject: [Xerte] Re: _ytile issue</span></p><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The image hasn’t loaded when _ytile is used, so it only measures the height of the text field.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="ecxMsoNormal" style="margin-left:72.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br><b>Sent:</b> 25 April 2012 13:50<br><b>To:</b> Xerte list<br><b>Subject:</b> [Xerte] _ytile issue</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p></div></div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I'm duplicating and then setting properties on some text icons.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">The icons have a y property of _ytile+25.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Works as expected when there is simple text set in the node.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">But if I add an image to that text:</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">icon.nextSibling.childNodes[0].childNodes[i].firstChild.nodeValue = '<img src="common/lucio.jpg"/><b>' + colone_array[i]+ '</b>';</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">it no longer tiles correctly. They overlap as if the plain text is still being used as the _ytile registration point.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">The odd thing is that following the setup of those icons, I colour the text background:</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">icon.parentNode.childNodes[i].clip().txt.backgroundColor= 0xFFF8C6;</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">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. </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">So _ytile is not seeing the y extent of the object but clip() is?</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Dave</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div></div></div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. <br>This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. <br><br>_______________________________________________ Xerte mailing list Xerte@lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.</span></p></div></div></div></div><br>_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.</div></div>                                         </div></body>
</html>