Fix. Now the z index stack is consistent.

This commit is contained in:
Valera Rozuvan
2012-12-25 13:26:34 +02:00
committed by Alexander Kryklia
parent f0850f4c4b
commit 06f1c54fa7

View File

@@ -153,8 +153,8 @@ define(['logme'], function (logme) {
(function (c1) {
while (c1 < _draggables.length) {
if (draggableContainerEl.attr('data-old-z-index') < _draggables[c1].css('z-index')) {
_draggables[c1].css('z-index', _draggables[c1].css('z-index') - 1);
if (parseInt(draggableContainerEl.attr('data-old-z-index'), 10) < parseInt(_draggables[c1].css('z-index'), 10)) {
_draggables[c1].css('z-index', parseInt(_draggables[c1].css('z-index'), 10) - 1);
}
c1 += 1;
}