From d77c594ab56b30a632326751e05a7b5fd149e6c8 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Tue, 3 Jan 2017 09:57:55 +0200 Subject: [PATCH] semantic fix for panel to root --- plasmoid/contents/code/tools.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plasmoid/contents/code/tools.js b/plasmoid/contents/code/tools.js index b44e13bd2..d3927c644 100644 --- a/plasmoid/contents/code/tools.js +++ b/plasmoid/contents/code/tools.js @@ -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()) {