Skip to content

Commit

Permalink
fix for almende#353
Browse files Browse the repository at this point in the history
possible fix for (Timeline - Wrong item top position with empty group almende#353)
  • Loading branch information
PlassJ authored Jul 7, 2017
1 parent 7b3c080 commit 45d4894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/timeline/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 45d4894

Please sign in to comment.