I'm not sure I see a clean way draggable could get involved here, as the
delay and distance options keep draggable from kicking in on a click to
prevent unintended dragging. Hmm, speaking of, what if you set distance to
0, as the default is 1?
http://jqueryui.com/docs/draggable/#option-distance
-
gt; Maurício-Mensagem Original-
> De: WR
> Para: jQuery UI
> Enviada em: quarta-feira, 29 de julho de 2009 11:15
> Assunto: [jquery-ui] Re: Bring draggable to the top on click
>
> I overcame this by binding to the click event for my draggable. I then
>
zIndex: 5000};
$('#drag, #drag2, #drag3').draggable(dragOpts);
})
Maurício-Mensagem Original-
De: WR
Para: jQuery UI
Enviada em: quarta-feira, 29 de julho de 2009 11:15
Assunto: [jquery-ui] Re: Bring draggable to the top on click
I overcame this by bin
I overcame this by binding to the click event for my draggable. I then
set the z-index of the draggable to the maximum z-index of the other
draggables plus 1.
$("#myDraggable").bind("click", function(e){
var largestZ = 1; // this is the min z-index you would want to
apply to the draggable