[Laszlo-user] Inputtext Resize Broken
Henry Minsky
henry.minsky at gmail.com
Thu Apr 3 10:49:06 PDT 2008
Max, I filed this as http://www.openlaszlo.org/jira/browse/LPP-5678
I just assigned to you in case you want to take a whack at it,
otherwise assign back to me I guess,
On Thu, Apr 3, 2008 at 1:40 PM, Max Carlson <max at openlaszlo.org> wrote:
> 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
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
More information about the Laszlo-user
mailing list