Categories | Question details Back To List | ||
Show line when dragging on Tree How do you get a line to show when you drag an item of a tree (like you have in your samples?). Thanks John Answer posted by Support on Sep 12, 2008 08:41 This is part of default tree functionality, it is enabled automatically if you are using "sibling" or "complex" drag behavior. ( tree.setDragBehavior ) Answer posted by John Watson on Sep 12, 2008 08:55 It doesnt seem to be showing, is that a CSS problem? Answer posted by Support on Sep 12, 2008 10:22 The line itself defined as CSS element, but it not so simple to break it. ( dhtmlxtree.css .selectionBar css style ) Problem can be caused by scrolls on the tree's container element. Please be sure that you have not overflow:auto or overflow:scroll assigned to container of tree. ( Tree will generate necessary scrolls automatically ) If issue still occurs - please provide any kind of sample or demo link where issue can be reconstructed. Answer posted by John Watson on Sep 12, 2008 10:59 My problem was that I didnt have your CSS sheet included. When I do, I can no longer have my tree's container using width:auto and height:auto, any ideas why? I cant seem to find how it sets the CSS on the tree container. Thanks John Answer posted by John Watson on Sep 12, 2008 11:08 I have found my answer, I removed the overflow on this line: and added width and height. .containerTableStyle {position:relative; top:0; font-size : 11px; width:auto: height:auto} All works great! |