[Laszlo-dev] Weird behavior in tabslider

Quirino Zagarese thebluesoul at gmail.com
Thu Jun 7 00:52:43 PDT 2007


Hi!
Working with the tabslider component, I noticed a weird behavior:
if you run this script in debug mode

<canvas>
    <tabslider  name="myts" width="200" height="400">
        <tabelement>One</tabelement>
        <tabelement>Two</tabelement>
        <tabelement>One</tabelement>
        <tabelement>Two</tabelement>
    </tabslider>
</canvas>

and you type this command in the Debug window:

canvas.myts.getItemAt(2);

the method returns the first tabelement instance in place of third.
This is because the method maybe does a linear search and a comparison on
the text attribute.
I didn't test the method on the defining class (baselist).
Maybe you already fixed it.
Hope to be helpful.
Regards



-- 
Quirino Zagarese

LaszloItalia Founder (www.laszloitalia.org)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20070607/a30b696f/attachment.html


More information about the Laszlo-dev mailing list