On Saturday 13 January 2007 03:54, Walter Lee Davis wrote:
I've seen this, and worked around it by setting a min-height on the
container. Without this, the container collapses to a singularity when
you remove the last content, and you can't get anything to go back into
it. I suppose you can, theoretically, if you have steady enough hands,
but it becomes practically impossible.
Walter
On Jan 12, 2007, at 6:44 PM, bitomike wrote:
> Hi I'm using the scriptaculous sortables to create a nested sortable
> list http://www.bitdamaged.com/testpages/anatest.html So you can sort
> individual items (rtli-*) and the whole "release" items as well (text
> is the handle)
>
> It works fine except when you remove all the rtli items from a
> "release" you can't put them back. I'm assuming I'm missing some sort
> of "drop zone" but I can't figure out what I need to do to get this.
>
Walter's right - the <UL> is still there, it's just 0px high so you can't get
it to trigger any mouseover events.
Your <UL> tags are followed by a character, presumably to create the
bottom grey border of each list in the layout. If you use CSS instead (set
padding-bottom to, say, 8px), you'll get finer control of the height of this
border, and you can make it part of the <UL> tag, so it'll still receive
events when it's empty.
Dave
--
----------------------
Author
Ajax in Action http://manning.com/crane
Ajax in Practice http://manning.com/crane2
Prototype & Scriptaculous Quickly http://manning.com/crane3
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---