Double click event not fired/triggered when double clicking on left side of tree node
i have following flex tree
<mx:tree id="tree" left="0" right="0" top="0" bottom="0"
alternatingitemcolors="[#eeeeee, white]" dataprovider="{lsespecie}"
dragenabled="true" dragmoveenabled="true" dropenabled="true" labelfield="item"
labelfunction="tree_labelfunc" showroot="false"
doubleclickenabled="true" doubleclick="tree_doubleclick(event)">
</mx:tree>
when double click on icon , right of side on node, double click event being fired expected. when clicking on part of left side of node double click not being fired
is there way make double click event fire when happening left side of node ?
the issue solved fixedtree class
import flash.display.interactiveobject;
import flash.events.event;
import mx.controls.tree;
import mx.core.mx_internal;
use namespace mx_internal;
public class fixedtree extends tree {
public function fixedtree() {
super();
}
override protected function createchildren():void {
super.createchildren();
getlistcontentholder().selectionlayer.addeventlistener(event.added, selectionlayerchildaddedhandler);
}
private function selectionlayerchildaddedhandler(e:event):void {
// listbase:5790 creates spriteasset selectionlayer not set mouseenabled false
interactiveobject(e.target).mouseenabled = false;
}
}
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment