Hi, We are using script.aculo.us dragdrop.js v1.7.0. We are trying to drag an element from the center pane to the left nav. The center pane has a lot of items and hence shows a vertical scroll. The top elements from the center pane can be easily dragged to the left nav. However, whe we try to scroll to the the botton, and select an elemnt for dragging, the element appears far down the page. It goes as far as we have scrolled down. The element is thus not easily visible. We are still able to drop it in the droppables. Is there a patch for this problem? Can you please suggest how we can fix this? Thanks, Yash --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
This is probably caused by the position element. For example if you have an absolute or fixed positioned div inside a relative positioned div and then another relative positioned div inside that. Or something like that? Maybe you need to change the positioning. On Oct 15, 8:50 am, Yash <yas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > We are using script.aculo.us dragdrop.js v1.7.0. We are trying to drag > an element from the center pane to the left nav. The center pane has a > lot of items and hence shows a vertical scroll. The top elements from > the center pane can be easily dragged to the left nav. However, whe we > try to scroll to the the botton, and select an elemnt for dragging, > the element appears far down the page. It goes as far as we have > scrolled down. The element is thus not easily visible. We are still > able to drop it in the droppables. > > Is there a patch for this problem? Can you please suggest how we can > fix this? > > Thanks, > Yash--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Erik Schuchmann
2007-Nov-01 21:17 UTC
Re: Drag-drop problem when draggables in scrolling DIV
Did you find a solution for this? I have the same problem. If I remove the overflow style for the div containing a number of draggables, they drag around fine. If it''s set to scroll, the draggables won''t drag off the containing div. thanks, Erik On Oct 15, 7:50 am, Yash <yas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > We are using script.aculo.us dragdrop.js v1.7.0. We are trying todrag > an element from the center pane to the left nav. The center pane has a > lot of items and hence shows a vertical scroll. The top elements from > the center pane can be easily dragged to the left nav. However, whe we > try to scroll to the the botton, and select an elemnt for dragging, > the element appears far down the page. It goes as far as we have > scrolled down. The element is thus not easily visible. We are still > able to drop it in the droppables. > > Is there a patch for this problem? Can you please suggest how we can > fix this? > > Thanks, > Yash--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
To get around it (it''s a side-effect of CSS), you''ve got to manually move the dragged element to a place in the DOM outside of your overflow container. When I needed to accomplish this, I observed the click event, moved the element, then made it draggable on the fly (instead of page load), and kick-started the drag initialization manually. I put some code in a post many months ago--it might still work. (I haven''t tested that app against newer versions of Scripty.) TAG On Nov 1, 2007, at 3:17 PM, Erik Schuchmann wrote:> > Did you find a solution for this? I have the same problem. If I > remove the overflow style for the div containing a number of > draggables, they drag around fine. If it''s set to scroll, the > draggables won''t drag off the containing div. > > thanks, > Erik > > On Oct 15, 7:50 am, Yash <yas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Hi, >> >> We are using script.aculo.us dragdrop.js v1.7.0. We are trying todrag >> an element from the center pane to the left nav. The center pane >> has a >> lot of items and hence shows a vertical scroll. The top elements from >> the center pane can be easily dragged to the left nav. However, >> whe we >> try to scroll to the the botton, and select an elemnt for dragging, >> the element appears far down the page. It goes as far as we have >> scrolled down. The element is thus not easily visible. We are still >> able to drop it in the droppables. >> >> Is there a patch for this problem? Can you please suggest how we can >> fix this? >> >> Thanks, >> Yash > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Yash and others, maybe this patch is what you are looking for: http://dev.rubyonrails.org/ticket/8386 -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com P.S.- I use an extension which doesn''t modifies the core library code. But it was based on this patch, so, can''t say for sure how well the patch will work. On Nov 2, 2007 8:20 AM, Tom Gregory <tomg-PGZyUNKar/Q@public.gmane.org> wrote:> > To get around it (it''s a side-effect of CSS), you''ve got to manually > move the dragged element to a place in the DOM outside of your > overflow container. When I needed to accomplish this, I observed the > click event, moved the element, then made it draggable on the fly > (instead of page load), and kick-started the drag initialization > manually. > > I put some code in a post many months ago--it might still work. (I > haven''t tested that app against newer versions of Scripty.) > > > TAG > > > On Nov 1, 2007, at 3:17 PM, Erik Schuchmann wrote: > > > > > Did you find a solution for this? I have the same problem. If I > > remove the overflow style for the div containing a number of > > draggables, they drag around fine. If it''s set to scroll, the > > draggables won''t drag off the containing div. > > > > thanks, > > Erik > > > > On Oct 15, 7:50 am, Yash <yas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hi, > >> > >> We are using script.aculo.us dragdrop.js v1.7.0. We are trying todrag > >> an element from the center pane to the left nav. The center pane > >> has a > >> lot of items and hence shows a vertical scroll. The top elements from > >> the center pane can be easily dragged to the left nav. However, > >> whe we > >> try to scroll to the the botton, and select an elemnt for dragging, > >> the element appears far down the page. It goes as far as we have > >> scrolled down. The element is thus not easily visible. We are still > >> able to drop it in the droppables. > >> > >> Is there a patch for this problem? Can you please suggest how we can > >> fix this? > >> > >> Thanks, > >> Yash > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---