Broken overflow support for droppables.

0 views
Skip to first unread message

dal...@gmail.com

unread,
Dec 5, 2006, 8:56:50 PM12/5/06
to Ruby on Rails: Spinoffs
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?

dal...@gmail.com

unread,
Dec 5, 2006, 9:02:42 PM12/5/06
to Ruby on Rails: Spinoffs
Oh yeah, the same behaviour is shown in firefox 2.0 and ie 6

Thomas Fuchs

unread,
Dec 6, 2006, 7:00:53 AM12/6/06
to rubyonrail...@googlegroups.com
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

--
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


dal...@gmail.com

unread,
Dec 6, 2006, 5:09:48 PM12/6/06
to Ruby on Rails: Spinoffs
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.

Reply all
Reply to author
Forward
0 new messages