I have some draggable, stacking divs (jsfiddle here):
$( ".plugin" ).draggable({cursor: "move", opacity: 0.9, stack: ".plugin", scroll: true});
When I drag one of the divs, its z-index
is reset to 1
(and incremented each time I send it to the top, because of the stack option). Instead, I want the z-index
to start from 200
(the original z-index
value for the .plugin
divs) and be incremented from that value.
Jquery-ui 1.7 had a min parameter for the stack option.
In Jquery-ui 1.9.2 to 1.10 (the versions I'm using), you can only specify a selector, and, from which I can understand, the stacking should start from the pre-existent z-index of the element. Instead, it seems arbitrarily re-starting at 1. What am I missing?
(Downgrading to 1.7 is not a viable solution)