dalyons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Dec-06 01:56 UTC
Broken overflow support for droppables.
Ive seen this posted numerous times all over the web, but noone seems to have a solution. In short, if there are droppables inside a scrollable div (overflow auto or scroll), all the ''hidden'' divs in that scroll (not viewable unless you scroll down to them) are still present as invisible drop targets. Its kind of hard to explain, heres a simple example as i dont know how to post code. Theres a Scrolling div with height 1 line. It has 3 ''lines'' of divs in it. Like: <div style="overflow:auto; height: 1em"> <div id=l1> line1 </div> <div id=l2> line2 </div> <div id=l3> line3 </div> </div> <div id=dragme> Drag me </div> So when it loads only "line1" is visible. Cool so far. Then you make l1-l3 droppables and dragme a draggable. The problem is "dragme" can be dropped onto line2 and line3, even when they are not visible, just by letting go of the draggable underneath the scrolling box. You shouldnt be able to drop onto something that isn''t supposed to be there! Its incredibly frustrating, ive tried just about everything to make it work.I love the d&d functionality otherwise, its a great enhancement to my app. Anyone have any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
dalyons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Dec-06 02:02 UTC
Re: Broken overflow support for droppables.
Oh yeah, the same behaviour is shown in firefox 2.0 and ie 6 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
That''s a bug. I don''t think there''s ticket for this, can you create one? It would be nice to have complete, simplified test case for this. best, thomas Am 06.12.2006 um 02:56 schrieb dalyons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org:> > Ive seen this posted numerous times all over the web, but noone seems > to have a solution. > > In short, if there are droppables inside a scrollable div (overflow > auto or scroll), all the ''hidden'' divs in that scroll (not viewable > unless you scroll down to them) are still present as invisible drop > targets. Its kind of hard to explain, heres a simple example as i dont > know how to post code. > > Theres a Scrolling div with height 1 line. It has 3 ''lines'' of divs in > it. Like: > <div style="overflow:auto; height: 1em"> > <div id=l1> line1 </div> > <div id=l2> line2 </div> > <div id=l3> line3 </div> > </div> > > <div id=dragme> Drag me </div> > > So when it loads only "line1" is visible. Cool so far. > Then you make l1-l3 droppables and dragme a draggable. > > The problem is "dragme" can be dropped onto line2 and line3, even when > they are not visible, just by letting go of the draggable underneath > the scrolling box. > You shouldnt be able to drop onto something that isn''t supposed to be > there! > > Its incredibly frustrating, ive tried just about everything to make it > work.I love the d&d functionality otherwise, its a great > enhancement to > my app. > Anyone have any ideas? > > > >-- Thomas Fuchs wollzelle http://www.wollzelle.com questentier on AIM madrobby on irc.freenode.net http://www.fluxiom.com :: online digital asset management http://script.aculo.us :: Web 2.0 JavaScript http://mir.aculo.us :: Where no web developer has gone before --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
dalyons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Dec-06 22:09 UTC
Re: Broken overflow support for droppables.
No worries, I can create one! I even have a complete simple test case; I made it to duplicate the problem and make sure it wasnt something else on my site. I''ve never posted a bug before to RoR, but ill give it a go :) http://dev.rubyonrails.org/ticket/6776 cool. now ill just attach my test html file. Thomas Fuchs wrote:> That''s a bug. I don''t think there''s ticket for this, can you create one? > > It would be nice to have complete, simplified test case for this. > > best, > thomas > > Am 06.12.2006 um 02:56 schrieb dalyons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org: > > > > > Ive seen this posted numerous times all over the web, but noone seems > > to have a solution. > > > > In short, if there are droppables inside a scrollable div (overflow > > auto or scroll), all the ''hidden'' divs in that scroll (not viewable > > unless you scroll down to them) are still present as invisible drop > > targets. Its kind of hard to explain, heres a simple example as i dont > > know how to post code. > > > > Theres a Scrolling div with height 1 line. It has 3 ''lines'' of divs in > > it. Like: > > <div style="overflow:auto; height: 1em"> > > <div id=l1> line1 </div> > > <div id=l2> line2 </div> > > <div id=l3> line3 </div> > > </div> > > > > <div id=dragme> Drag me </div> > > > > So when it loads only "line1" is visible. Cool so far. > > Then you make l1-l3 droppables and dragme a draggable. > > > > The problem is "dragme" can be dropped onto line2 and line3, even when > > they are not visible, just by letting go of the draggable underneath > > the scrolling box. > > You shouldnt be able to drop onto something that isn''t supposed to be > > there! > > > > Its incredibly frustrating, ive tried just about everything to make it > > work.I love the d&d functionality otherwise, its a great > > enhancement to > > my app. > > Anyone have any ideas? > > > > > > > > > -- > Thomas Fuchs > wollzelle > > http://www.wollzelle.com > > questentier on AIM > madrobby on irc.freenode.net > > http://www.fluxiom.com :: online digital asset management > http://script.aculo.us :: Web 2.0 JavaScript > http://mir.aculo.us :: Where no web developer has gone before--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---