From 45d4894b1479ca3a17d627e7c3f0f750edc3c6b9 Mon Sep 17 00:00:00 2001 From: PlassJ Date: Fri, 7 Jul 2017 08:35:35 +0200 Subject: [PATCH] fix for #353 possible fix for (Timeline - Wrong item top position with empty group #353) --- js/src/timeline/timeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/timeline/timeline.js b/js/src/timeline/timeline.js index 6c555ac..7511908 100755 --- a/js/src/timeline/timeline.js +++ b/js/src/timeline/timeline.js @@ -5328,9 +5328,9 @@ links.Timeline.prototype.stackCalculateFinal = function(items) { if (!groupedItems[group.content]) { if (axisOnTop) { - groupBase += options.groupMinHeight + eventMargin; + groupBase += Math.max(options.groupMinHeight, group.labelHeight) + eventMargin; } else { - groupBase -= (options.groupMinHeight + eventMargin); + groupBase -= (Math.max(options.groupMinHeight, group.labelHeight) + eventMargin); } continue; }