[Laszlo-user] Inputtext Resize Broken
Max Carlson
max at openlaszlo.org
Thu Apr 3 10:40:21 PDT 2008
Hi David,
Can you file a bug in Jira with this test case so we can evaluate fixing
this for an upcoming release? You can find Jira at
http://jira.openlaszlo.org/. Thank you!
David Buckler wrote:
> 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
--
Regards,
Max Carlson
OpenLaszlo.org
More information about the Laszlo-user
mailing list