Skip to content

Commit

Permalink
dont hide group items when group height undefined (visjs#1616)
Browse files Browse the repository at this point in the history
Co-authored-by: catherine_baird <catherine.baird@brivo.com>
  • Loading branch information
ctbaird and catherine_baird authored Jun 19, 2023
1 parent 805b1f1 commit ea35039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timeline/component/Group.js
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ class Group {
const visibleItems = [];
const visibleItemsLookup = {}; // we keep this to quickly look up if an item already exists in the list without using indexOf on visibleItems

if (!this.isVisible && this.groupId != ReservedGroupIds.BACKGROUND) {
if (!this.isVisible && this.height !== undefined && this.groupId != ReservedGroupIds.BACKGROUND) {
for (let i = 0; i < oldVisibleItems.length; i++) {
var item = oldVisibleItems[i];
if (item.displayed) item.hide();
Expand Down

0 comments on commit ea35039

Please sign in to comment.