[jquery-ui] Re: Bring draggable to the top on click

2009-08-01 Thread Richard D. Worth
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 -

[jquery-ui] Re: Bring draggable to the top on click

2009-08-01 Thread WR
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 >  

[jquery-ui] Re: Bring draggable to the top on click

2009-07-29 Thread Mauricio (Maujor) Samy Silva
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

[jquery-ui] Re: Bring draggable to the top on click

2009-07-29 Thread WR
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