|
If I understand your question correctly, you need
to find real drop position to add tree element. Most common issue is that people
use getDropLocation and do not look at getDropParent. Something like this
usually solves the issue:
function getRealDropLocation() {
dropLoc = tv_1.getDropLocation(); dropParent = tv_1.getDropParent(); // Logger.trace(dropLoc + ":" + dropParent); // Logger.trace("!!!" + dropLoc + ":" + tv_1.getItemAt(0)); var i; for ( i = 0; i < tv_1.rowCount; i++) if ( dropParent == tv_1.getItemAt(i) ) { dropLoc+=i; break; } }
Sorry if I misunderstand your question - posting
code would be a way to see the problem if it is different from the
above.
HTH,
Anatole Tartakovsky
|
- Re: [flexcoders] Could someone please confirm this (Tr... Anatole Tartakovsky
- [flexcoders] Re: Could someone please confirm thi... sourcecoderia
- RE: [flexcoders] Re: Could someone please con... Matt Chotin
- [flexcoders] Re: Could someone please con... sourcecoderia
- Re: [flexcoders] Re: Could someone please con... Anatole Tartakovsky

