[Laszlo-user] Inputtext Resize Broken

David Buckler db at intuvo.com
Thu Mar 27 12:42:00 PDT 2008


This is a feature that used to work in version 3 that I believe is
broken in version 4.  Here is an example of what we use:
 
<inputtext name="text4" datapath="text4/text()"
onblur="this.datapath.setNodeText(this.getText());" align="center"
resize="true" />
 
It seems like resize isnt firing when the text is set from the datapath.
So I then went to create the following example:
 
<canvas height="500" width="700" debug="true">
    <view width="200" bgcolor="black" opacity=".4">   
        <inputtext id="i" resize="true" align="center">This text is
editable.</inputtext>
    </view>
</canvas>

And went into the debugger and did i.setText('this') and the text didn't
center.  I had to go i.setWidth(i.getTextWidth()) in the debugger to get
the text to center correctly.  All this led me to believe that the
resize feature is not working correctly.  It appears to be only broken
when the text is changed at run time because the text initially shows up
correct in the previous example.
 
Davod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20080327/b0ed5f27/attachment.html


More information about the Laszlo-user mailing list