Flex HDividedBox prevent dragging
- by Jeremy Mitchell
I'd love to be able to prevent dragging of a HDividedBox's divider based on a condition. for example:
<mx:HDividedBox id="hd1" liveDragging="true" dividerDrag="dividerDragHandler(event)">
<Canvas id="c1"/>
<Canvas id="c2"/>
</HDividedBox>
private function dividerDragHandler(event:DividerEvent):void
{
if (_something 10)
{
event.preventDefault();
}
}
Any ideas how I can do something like that? And I'd rather not mess with the widths of the child canvases. Thanks.