PDA

View Full Version : [Solved] Bug, dragging in an expanded tree



GnuDK
2 Jul 2007, 1:22 PM
Found an error while playing with the TreePanel.
Expand a TreePanel to the point where a scrollbar appears and then scroll to the bottom. Try drag an element around. The widget has a bit of a problem creating that dropline between to child nodes of the root.
Funny enough there's no problem while doing it inside one of these child nodes.

Tested in Win FF v2.0.0.4

GnuDK
3 Jul 2007, 11:31 AM
Throwing a div element with "position: relative" seems to solve the problem...

MD
18 Jul 2007, 6:09 PM
I've just hit this exact same issue, it's been driving me nuts for the last 2 hrs, finally happened across your post. :)

Could you please exapand on your solution? -- I'm not quite clear on where/which div you're setting to position: relative

-MD

GnuDK
19 Jul 2007, 12:12 PM
Of course... :)

Add the attribute to the container of your tree...

E.g:

var el = dh.append(renderTo,{tag: 'div', style: 'position: relative'},true);
var tree = new Ext.tree.TreePanel(el,config);
This is just picked from my wrapper function...

MD
19 Jul 2007, 10:37 PM
Awesome, works like a charm -- thanks! ;)

ssa962
22 Aug 2007, 2:36 AM
Throwing a div element with "position: relative" seems to solve the problem...

I don't know why this problem is not given that much of importance by the Ext team.
Thanks to GnuDK for coming up with the solution.

jsakalos
22 Aug 2007, 2:22 PM
GnuDK,

could you pleas mark your first post as [solved]?

Thanks,