I filed this as http://www.openlaszlo.org/jira/browse/LPP-5678
On Thu, Mar 27, 2008 at 3:42 PM, David Buckler <[EMAIL PROTECTED]> 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
>
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]