Browse Source

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
updateMomentjs
yotamberk 7 years ago
committed by GitHub
parent
commit
1901a3ec9d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/timeline/component/ItemSet.js

+ 1
- 1
lib/timeline/component/ItemSet.js View File

@ -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

Loading…
Cancel
Save