From: Jan Schneider Date: Mon, 21 Sep 2009 17:00:18 +0000 (+0200) Subject: Fix calculating bottom event position. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e84f2a662f5f200a71f559ead7bd6b3e3ac3c971;p=horde.git Fix calculating bottom event position. --- 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))