> The zIndex option should change the z-index of the clone/helper. If it's
> not, that's a bug. Could you verify in Firebug? You haven't mentioned
> whether you're using IE. If so, I think you may need to use both appendTo
> *and* zIndex.
Richard - you've got it - thank you very much indeed.
For reference, I'm developing with FF because of Firebug support (and
the huge number of ajax calls that are flying back and forth are more
easily debugged with that). Having tested across FF, IE, Safari,
Opera and Chrome the new fix works in them all...
For anyone else, my final code is as follows (with added comments for
readability :
// let the Cargo items be draggable
$('li',$Cargo).draggable({
cancel: 'a.ui-icon',// clicking an icon won't initiate dragging
revert: 'invalid', // when not dropped, the item will revert back to
its initial position
helper: 'clone', // clone the item
cursor: 'move', // move cursor
zIndex: 10000, // set the zindex of the cloned object
appendTo: 'body' // add the object to the body - not forgetting to
update styling to get rid of the bullet point...
});
Regards,
Paul
p.s. I'm soon going to be looking for testers for Outer Empires, if
you're interested, do sign up at http://www.outer-empires.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" 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/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---