semantic fix for panel to root

pull/1/head
Michail Vourlakos 8 years ago
parent d0f4c80ab2
commit c7345a5b62

@ -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()) {

Loading…
Cancel
Save