Ah, yes. I did have this problem. I ended up getting around it in an odd sort of way: instead of making my list items draggables, I trapped the onclick for the list items, and manually created a div with a higher z-index, which I instantiated as a Draggable and fired the proper functions to begin dragging. It's a bit kludgy, but from the user side it works well.

TAG

On Jun 1, 2006, at 1:15 PM, Jonathan Weiss wrote:
Yes, it is now more a CSS problem. I need to disable the scroll/ auto so that I can drag outside the container but hidden does not work as the dragged element is hidden when dragging out of the container (which makes sense).

When I disable overflow the content of the div flows over another and the dragged element 'ghost image' is jumping to the bottom of the page. I assume that this happens because with the overflow restriction gone, the content expands (moving my draggable div to the bottom) and the JS code still thinks that it's position is unchanged.

It's difficult to explain but the solution would be to disable scrolling while dragging but still preserve the overflow CSS. So that the overflow style is still in place but not triggered by the drag.

Regards,
Jonathan
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to