PDA

View Full Version : html text


metasarah
03-10-2003, 02:25 PM
I'm noticing some unexpected spacing of html text:

<canvas>
<view width="parent.width" >
<simplelayout/>
<text width="200" multiline="true">
<p>Through our scientific genius we have made of the world a neighborhood; </p>
<p>now, through moral and spiritual genius, we must make of it a brotherhood.</p>
</text>
<view width="parent.width" height="10" bgcolor="blue"/>
</view>
</canvas>

There appear to be a few extra lines of white space at the end of the text view, before the blue rectangle view.

antun
03-10-2003, 02:34 PM
Hey metasarah

That's a bug with the <p> tag. It's been logged. Right now it doesn't do anything really fancy, so you can substitute two <br /> tags to get the same effect.

Take care,

Antun