[Laszlo-dev] <text> tags

Lou Iorio liorio at laszlosystems.com
Wed Feb 20 08:42:33 PST 2008


Hi Tucker,

In this JIRA, there are two problems:

Example 21.12 is trying to show how you can use <text> with  
multiline=false.
The text states that you can use <br /> tags to force line breaks,  
but this doesn't
work. The reference says the same thing. This did not work in version  
3.4 either.
In the example, the text doesn't break.

canvas height="125">
   <simplelayout spacing="5"/>
   <text bgcolor="#ccccff" multiline="false" width="500" height="100">
     Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras<br/>
     nibh. Quisque justo. Donec porta, wisi quis vehicula interdum,<br/>
     augue dui pharetra lectus, non adipiscing purus nibh vitae purus.
   </text>
</canvas>

Example 21.18 is trying to show that you can't have an image in text  
if there is
no text. This doesn't work: the image shows up either way. Here's the  
example:

<canvas height="100">
   <text multiline="true" height="80">
     Some text and
     <img src="./images/horse-3.jpg" width="20" height="20"  
align="left"/>
     some more text
   </text>
</canvas>

These are in the Text views chapter of the dguide.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080220/7f07c681/attachment.html


More information about the Laszlo-dev mailing list