From e84f2a662f5f200a71f559ead7bd6b3e3ac3c971 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 21 Sep 2009 19:00:18 +0200 Subject: [PATCH] Fix calculating bottom event position. --- kronolith/js/kronolith.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 304e750da..61fe1e4c2 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -1002,8 +1002,8 @@ KronolithCore = { draggerBottom = new Element('DIV', { 'id': event.value.nodeId + 'bottom', 'class': 'kronolithDragger kronolithDraggerBottom' }).setStyle(style); div.setStyle({ - 'top': ((midnight.getElapsed(event.value.start) / 60000 | 0) * this[storage].height / 60 + this[storage].offset | 0) + 'px', - 'height': ((event.value.start.getElapsed(event.value.end) / 60000 | 0) * this[storage].height / 60 - this[storage].spacing | 0) + 'px', + 'top': (Math.round(midnight.getElapsed(event.value.start) / 60000) * this[storage].height / 60 + this[storage].offset | 0) + 'px', + 'height': (Math.round(event.value.start.getElapsed(event.value.end) / 60000) * this[storage].height / 60 - this[storage].spacing | 0) + 'px', 'width': '100%' }) .insert(innerDiv.setStyle(style)) -- 2.11.0