I'm having a problem with jqueryUI sortable and the overflow property in a page i'm working on - i've put a version of it on my public dropbox:
http://dl.dropbox.com/u/846812/stage_edit/stage_edit.html
If you grab one of the blue boxes in the right-hand-side container (pick it up by the grey bar) you can drag it over to the left (or the right) and it stays visible. However if you grab one of the boxes from the left and drag it out it's hidden behind the right hand side, or at least you can't see it once it crosses over. Also, the left hand container (#droppable-stage
) expands along the x to keep the box inside, even though it's "under" the right hand side (#droppable-resource-list
).
It is there, because you can see the grey box showing where it will appear, and when you drop it then it appears in the right hand side. It's just when it's in its drag state that you can't see it.
I can't work out why this is happening, particularly why it would be different for the right versus the left. I don't know if the problem is with css or with the jquery-ui draggable/sortable javascript. I've tried fixing it by mucking about with css to no avail - for example, if i put style="overflow:visible;"
on #droppable-stage
then the dragging works fine but i lose the y-overflow: that is, the resource divs (blue and green boxes) spill out of the bottom.
I tried setting overflow-x to visible and overflow-y to auto, thinking that would mean i could drag the blue boxes out the sides but still have a scrollbar on the left, but that didn't work: oddly, it seems to be the overflow-y property in particular that determines whether i can drag a box out the left or right, which doesn't make sense to me.
Any ideas, anyone?