[Laszlo-user] <text> not obeying maxlength?

Robin robin at kallisti.net.nz
Tue Apr 4 01:25:30 EDT 2006


I have a text item declared like:
<text resize="true" align="${parent.talign}" valign="${parent.tvalign}"
	text='$path{"text()"}' multiline="true"
width="${(this.getTextWidth()&lt;parent.width)?this.getTextWidth()+1:parent.width}"
	maxlength="15"/>

However, no matter what is in $path{"text()"}, it shows the whole thing, not
chopping it at 15 characters like I expected. When does this value make a
difference? Also, while trying to figure out what was happening, I couldn't
find the source for the text class. Where does that live?

Cheers, Robin.


More information about the Laszlo-user mailing list