Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Fix background items with no groups #2241

Merged
merged 1 commit into from Oct 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/timeline/component/Group.js
Expand Up @@ -502,8 +502,7 @@ Group.prototype.order = function() {
Group.prototype._updateVisibleItems = function(orderedItems, oldVisibleItems, range) {
var visibleItems = [];
var visibleItemsLookup = {}; // we keep this to quickly look up if an item already exists in the list without using indexOf on visibleItems

if (!this.isVisible) {
if (!this.isVisible && this.groupId != "__background__") {
for (var i = 0; i < oldVisibleItems.length; i++) {
var item = oldVisibleItems[i];
if (item.displayed) item.hide();
Expand Down Expand Up @@ -557,7 +556,6 @@ Group.prototype._updateVisibleItems = function(orderedItems, oldVisibleItems, ra
});
}


// finally, we reposition all the visible items.
for (var i = 0; i < visibleItems.length; i++) {
var item = visibleItems[i];
Expand Down