Forum: Rails Spinoffs (closed, excessive spam) Draggables from an overflow:auto div in ie7 are stuck :: Scriptaculous / Prototype ::

6aae8d67131475a18f8088fcf7b07885?d=identicon&s=25 PhillipS (Guest)
on 2008-06-12 21:59
(Received via mailing list)
After applying this fix for IE (which seems to be absolutely necessary
for draggables when ghosting=true):
http://dev.rubyonrails.org/attachment/ticket/10207...

In ie7 and lower, when the containing div (with overflow:auto;) for
draggables is scrolled, the draggable elements appear stuck -- as if
their position is fixed to the containing div.

Here is the HTML to reproduce the bug in IE: http://pastie.org/213948

I am using Scriptaculous 1.8.1 and Prototype 1.6.0.1
I have also posted this as a bug here:
http://prototype.lighthouseapp.com/projects/8887/t...

Many thanks, and any help is much appreciated

Phillip
8c5868aade15ca78a6b4dcdf3cc59bf7?d=identicon&s=25 blechler (Guest)
on 2008-06-12 23:08
(Received via mailing list)
Try using DragDropExtra from http://scripteka.com/.

I'm using it with some level of success.  I'm interested to know if
you run into the same problems with it that I am experiencing.

This whold drag & drop from within an element with any sort of
overflow seems to be the bane of this library.  Nevertheless I still
like it.

It's kinda like a hot chick with stinky farts.  Can you get past that?
6aae8d67131475a18f8088fcf7b07885?d=identicon&s=25 PhillipS (Guest)
on 2008-06-13 19:27
(Received via mailing list)
I applied the patch you mentioned:
http://scripteka.com/script/dragdropextra

Thanks, it seems to be a good fix although it is/becomes buggy... for
instance, it will change the dimensions of the draggable, or only drag
the text, or (in ie6 & ie7) the draggable will be offset from where it
is initially selected when dragging it a second time.  To fix the
dimension changing issue, I declared in the CSS that the height and
width were !important.  You can see these issues and functionality in
this test case: http://pastie.org/214559 Try removing the !important
declarations in .draggable to see the dimension changing issues.

To fix the issue of the draggable being offset from the cursor on the
second drag in IE, I have no idea.  But i think it's is a minor issue
in comparison to the original bug.  Any thoughts?
8c5868aade15ca78a6b4dcdf3cc59bf7?d=identicon&s=25 blechler (Guest)
on 2008-06-13 22:03
(Received via mailing list)
Yeah, I got that second drag bug too.  I have notified the developer
about that, and he will be working on it within the next week or so is
my guess.
F56e565681e5c7cbd7b703ba9d771927?d=identicon&s=25 Tom Kim (debugger2020)
on 2008-06-17 01:33
I have the same issue with my page.

I noticed that taking out the doc type makes it work. But obviously that
isn't a good fixed because everything else breaks. Something with the
doc type is messing it up. Does anyone know of a way to fix this still
using a doc type?
This topic is locked and can not be replied to.