|
|
@ -92,9 +92,9 @@ function insertIndexAt(above, x, y) {
|
|
|
|
if (above && above.itemIndex) {
|
|
|
|
if (above && above.itemIndex) {
|
|
|
|
return above.itemIndex;
|
|
|
|
return above.itemIndex;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var distance = panel.vertical ? y : x;
|
|
|
|
var distance = root.vertical ? y : x;
|
|
|
|
//var step = panel.vertical ? LayoutManager.taskWidth() : LayoutManager.taskHeight();
|
|
|
|
//var step = root.vertical ? LayoutManager.taskWidth() : LayoutManager.taskHeight();
|
|
|
|
var step = panel.realSize;
|
|
|
|
var step = root.realSize;
|
|
|
|
var stripe = Math.ceil(distance / step);
|
|
|
|
var stripe = Math.ceil(distance / step);
|
|
|
|
|
|
|
|
|
|
|
|
/* if (stripe === LayoutManager.calculateStripes()) {
|
|
|
|
/* if (stripe === LayoutManager.calculateStripes()) {
|
|
|
|