1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-05 05:47:26 +03:00

semantic fix for panel to root

This commit is contained in:
Michail Vourlakos 2017-01-03 09:57:55 +02:00
parent d0f4c80ab2
commit c7345a5b62

View File

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