Hi vanq69, one simple method to do this is to force the global size of the ul element of the list to a fixed dimension, but in that case, for small list, the element still extend to its defined dimension.
Another (preferred way) could be to have a callback on the creation of the list to test dimensions and apply preferred dimensions if it's too big. the callback could be set on the sortable creation. The main problem with general question like the one you ask is that you could have numerous way to do that, but depending to your code, context or design, some restriction could appear. As for your previous question, just post the global HTML page, and try doing it, if you can'ty do what you want, then post the problem, it's definitelly easier to modify exting code ... and if you're wrong in doing something, it's easier for us to point the problem. -- david On 24 fév, 06:32, vanq69 <[email protected]> wrote: > I have a sortable draggable list with a droppable delete box, each > entry in the list has a single text line. > > My question is this, how do I determine that when the list reaches a > certain size that I want it to use scroll bars to avoid disrupting the > rest of the page layout, whilst keeping the delete box in the same > place if possible (ie at the bottom, i dont want it to be part of the > scrolling) > > This is the current code I use to build the list: > > function startup() > { > Sortable.create("chunksList", {}); > > Droppables.add("trash", > { > onDrop: function(element) > { > var deleteChunk = confirm("Are you sure you want to > delete this > Chunk?") > if (deleteChunk) > { > Element.hide(element); > process(element.id, "delChunk"); > } > } > }); > > } > > Many thanks for taking the time to read. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
