History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-2020
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: -- --
Assignee: Frisco Del Rosario
Reporter: Jim Grandy
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

datacombobox doesn't set up floatinglist.owner properly

Created: 04/May/06 02:01 AM   Updated: 26/Jun/06 09:38 PM
Component/s: Components - base
Affects Version/s: 3.2 (Sage)
Fix Version/s: 3.3, 3.3.3

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 42,018
Runtime: N/A
Fix in hand: False


 Description  « Hide
Datacombobox passes in 'canvas' as the parent of the dynamically-constructed floatinglist. It should pass in 'self'

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jim Grandy - 04/May/06 02:54 PM
Integrated to lps-3.2 as change 42019

Jim Grandy - 15/May/06 05:40 PM
Regress by checking to make sure floatinglist is properly registered by name in basedatacombobox. But be careful - floatinglist only exists while basedatacombobox has focus. So you could add an onfocus handler to your datacombobox instance checking that this['_cblist'] is non-null.

Frisco Del Rosario - 16/May/06 07:58 PM
Test:

<canvas width="300" height="300" debug="true">
<include href="lz/datacombobox.lzx"/>

<dataset name="cats">
   <item value=""></item>
        <item value="Morris" >Morris</item>
        <item value="Garfield" >Garfield</item>
</dataset>

<datacombobox id="cbox" x="5" y="5" width="130" itemdatapath="cats:/item">
<method name="setOpen" args="open">

super.setOpen(open);

if (open) {
if (this._cblist.owner == this) {
Debug.write("right owner");
}
}

</method>
</datacombobox>

</canvas>