PDA

View Full Version : Wrap text around an image


jprugh
04-08-2004, 04:15 PM
I'm trying to wrap text around an image within the context of a tabslider tabelement.

Is there an easy way to do this or will it require scripting to test the width/height of the image and then adjust the text width accordingly?

Thanks,
JP

antun
04-08-2004, 09:36 PM
I'm trying to wrap text around an image within the context of a tabslider tabelement.

You can't have text flow around the edges of an image like you see in magazines and newspapers. You can constrain the width of a text field to accomodate an image however, something like:


<text multiline="true"
width="${parent.width-parent.myimg.width}"
bgcolor="yellow" />
<view name="myimg" resource="img.jpg" align="right" />


It might help to give the text a background color, to help you understand what's happening with the dimensions of the text field itself.

-Antun

jprugh
04-09-2004, 08:54 AM
Ok, thanks for the quick response.