On 1/11/2001, 11:53:20 AM EST, Tarun wrote about "[Dynapi-Help] ScrollPane doesnt work
using DynDocument. -- still a few bugs":
> Thanks Peter,
> The stuff worked after some tweaking. However I found a few bugs (which I
> think can be fixed easily (maybe!) )
> This is the one line of code I added to make ScrollPane work.
> DragEvent.enableDragEvents(<referenceToDynDocument>,<scrollPaneObject>);
> On doing so, strange errors saying "Object doesnt support this property or
> method" crept up. These errors were caused due to the inclusion of
> "dynapi.ext.dragdrop.js" Once I removed this file from my include,
> ScrollPane works fine, with just one problem : Every time I scroll, the
> whole scrollpane gets dragged a little bit. So now I have a draggable
> scrollpane!
> On further inspection I found out that in dragdrop.js the problem was due
> to the line
> if (!this.hasChild()) return;
> On putting a line before this line saying:
> if (this.hasChild == null) return;
> the include problem gets fixed.
That line should read:
if (!this.children.length>0) return;
It has been updated in CVS, so if you check the latest snapshot it
should be correct.
Robert
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help