From 1901a3ec9d8c9ca8acb1119c86734fae4afa78b8 Mon Sep 17 00:00:00 2001 From: yotamberk Date: Tue, 21 Mar 2017 22:13:31 +0200 Subject: [PATCH] Visible items bug (#2878) * Fix redraw order * Fix error when option is not defined * Allow template labels * Add .travis.yml file * Add experiment travis code * Fix react example * Fix getVisibleItems method * Remove console log --- lib/timeline/component/ItemSet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/component/ItemSet.js b/lib/timeline/component/ItemSet.js index a278fba9..23798ecf 100644 --- a/lib/timeline/component/ItemSet.js +++ b/lib/timeline/component/ItemSet.js @@ -546,7 +546,7 @@ ItemSet.prototype.getVisibleItems = function() { for (var groupId in this.groups) { if (this.groups.hasOwnProperty(groupId)) { var group = this.groups[groupId]; - var rawVisibleItems = group.visibleItems; + var rawVisibleItems = group.isVisible ? group.visibleItems : []; // filter the "raw" set with visibleItems into a set which is really // visible by pixels