Thanks David, gives me a couple of options, Im not worried about the
list being
of a fixed dimension even when empty that is fine, its more it
extending too far
so I think having a go at option 1 is the best bet for me.

Will have a try and post with any issues.

Thanks

On Feb 24, 11:27 am, david <david.brill...@gmail.com> wrote:
> 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 <jaed...@gmail.com> 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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to