Anyone have any ideas on this please? Still getting the problem - everything else works perfectly, just the drag offset when the pane the draggables are in is scrolled down any amount. Used to work fine on a Sortable, doesn't seem to work with Draggables....
On 16 Dec, 14:01, astilla <[email protected]> wrote: > Hi, > > I'm having a problem with using "Position.includeScrollOffsets = true" > with a Draggable inside a scrolling layer - the draggable is > positioned away from the mouse pointer when the layer things are in is > scrolled down. I've used the includeScrollOffsets before successfully > on a Sortable but am not having much luck with a Draggable in the same > situation - does anyone know if there is anything that needs to be > done differently? > > Basic, very cut-down outline is:- > > <div id="main"> > <ul> > <li class="item">something</li> > > ... (etc) .... > > </ul> > </div> > > (script) > Position.includeScrollOffsets = true; > > $$('li.item').each(function(item) { > new Draggable(item, {ghosting:true, scroll:'main'}); > }); > > (css) > div#main { > position: relative; > float: left; > width: 75%; > overflow: scroll; > height: 100%; > background-color: white; > > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
