spinoffs-x/6uVEvKFPA7/Ux101rzFaIwWpluYiW7@public.gmane.org
2006-Mar-16 12:13 UTC
Drag Drop problem with Div using overflow:auto
There seems to be a problem with dragging an object outside a div if using overflow:auto on the div style. My problem is the same as the one described in the following thread but the responder''s "fix" did not work for me. Is there a fix for this problem? http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006-February/002599.html Regards _______________________________________________________ The FREE service that prevents junk email http://www.mailshell.com
> There seems to be a problem with dragging an object outside a div if using > overflow:auto on the div style. > > My problem is the same as the one described in the following thread but > the responder''s "fix" did not work for me. Is there a fix for this problem?I had the exact same problem, so i used Ryan Gahl''s rework of the dragdrop.js library and it works like a charm. I dont have a copy to attach here, but i highly recommend using his as a baseline for whatever drag/drop functionality that you need. BDins _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
spinoffs-x/6uVEvKFPA7/Ux101rzFaIwWpluYiW7@public.gmane.org
2006-Mar-16 15:29 UTC
RE: Drag Drop problem with Div using overflow:auto
I took a look at the code I copied off the thread: http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006-February/002599.html Seems this only does some magic when using ghosting and floating options. I hardcoded these options to true and it now drags out of the div but the object I am dragging becomes very far away from the mouse pointer (positioning problem). Has anyone else seen this? Is there a fix that doesn’t require the floating and ghosting to be set to true? Regards -------------------------------------------------------------------------------- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Brian Dinsmore Sent: Thursday, March 16, 2006 8:18 AM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails-spinoffs] Drag Drop problem with Div using overflow:auto There seems to be a problem with dragging an object outside a div if using overflow:auto on the div style. My problem is the same as the one described in the following thread but the responder''s "fix" did not work for me. Is there a fix for this problem? I had the exact same problem, so i used Ryan Gahl''s rework of the dragdrop.js library and it works like a charm. I dont have a copy to attach here, but i highly recommend using his as a baseline for whatever drag/drop functionality that you need. BDins _______________________________________________________ The FREE service that prevents junk email http://www.mailshell.com
> I took a look at the code I copied off the thread: >http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006-February/0025 99.html> Seems this only does some magic when using ghosting and floatingoptions. > I hardcoded these options to true and it now drags out of the div but the > object I am dragging becomes very far away from the mouse pointer> (positioning problem).> Has anyone else seen this? Is there a fix that doesn''t require the > floating and ghosting to be set to true?> RegardsYes, as I mentioned in my original post with that file, I made it to work for my application... so there are some idiosyncrasies (perhaps some day when I have more time I''ll genericize all my enhancements and submit a proper patch to Thomas)...at any rate, I did mention "beware". But, more than anything I submitted that file to this list for those who wanted to see a train of thought for a solution to this common problem... with the expectation that people would adapt it to work with their specific application. So my suggestion, is basically to change my file as you see fit, as I have done to the original dragdrop.js file for MY purposes. I.e. make it so ghosting and floating are not required, etc... The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers.
Seemingly Similar Threads
- Drag''n''Drop out of overflow:auto containers
- Draggables and overflow:auto
- Draggables and overflow div''s revisited
- sortable scroll in div problem : dragged element doesn't follow the mouse pointer
- dragdrop patch that enables dragging from and to divs with overflow:scroll