Hey everyone, I''m working on application that is using Script.aculo.us to create an online favorites management program. I''m trying to use Script.aculo.us to achieve add drag and drop and improve the UI. Unfortunately, the window size is constrained, so I am using 2 scrollable Divs tne containing the folders, and one containing the folders contents (ala windows explorer). Unfortunately, it has two problems, the folders, which are set as both draggables and droppables, over flow the div, ie I can drop a Link from the right div to a position below the left div, and it will recognize the drop into the droppable. I''ve seen workarounds for that around here, and on the bug tracker though, so I''m not too worried about that. More challenging though, the position of the drags doesn''t seem to update when I scroll the Div. For example, if i scroll the div all the way to the bottom, and drag a link to what is now the top of the div, it hits the draggable for what would be there if the Div hadn''t even scrolled. Is there any known Workaround in Script.Aculo.us for this, or a way to access the list of Draggable positions so this can be fixed? If that''s not clear, I can provide a demo page/test case for people to play with. Thanks everyone! Charles George --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Is the destination dropOnEmpty:true? I have a feeling the sortable code for dropOnEmpty iterates child nodes to calculate the drop position adding the heights of the objects up.. which could explain the behaviour. Gareth On 8/17/07, CharGeorge <chargeorge-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hey everyone, > > I''m working on application that is using Script.aculo.us to create an > online favorites management program. I''m trying to use > Script.aculo.us to achieve add drag and drop and improve the UI. > Unfortunately, the window size is constrained, so I am using 2 > scrollable Divs tne containing the folders, and one containing the > folders contents (ala windows explorer). > > Unfortunately, it has two problems, the folders, which are set as both > draggables and droppables, over flow the div, ie I can drop a Link > from the right div to a position below the left div, and it will > recognize the drop into the droppable. I''ve seen workarounds for that > around here, and on the bug tracker though, so I''m not too worried > about that. > > More challenging though, the position of the drags doesn''t seem to > update when I scroll the Div. For example, if i scroll the div all > the way to the bottom, and drag a link to what is now the top of the > div, it hits the draggable for what would be there if the Div hadn''t > even scrolled. Is there any known Workaround in Script.Aculo.us for > this, or a way to access the list of Draggable positions so this can > be fixed? > > If that''s not clear, I can provide a demo page/test case for people to > play with. > > Thanks everyone! > > Charles George > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks Gareth, we found the issue. Turns out there''s an option to include the height of Div''s in the calculations of "within" when dropping. By default this option is turned off in prototype.js (1.5.0). The option is includeScrollOffsets, and turning it on fixes the issue. According to the doc it''s a performance issue in FF, but I''ve been having no issues in FF 2.0. Char --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---