|
@ -258,7 +258,7 @@ Group.prototype.add = function(item) { |
|
|
this.items[item.id] = item; |
|
|
this.items[item.id] = item; |
|
|
item.setParent(this); |
|
|
item.setParent(this); |
|
|
|
|
|
|
|
|
if (item instanceof ItemRange && this.visibleItems.indexOf(item) == -1) { |
|
|
|
|
|
|
|
|
if (this.visibleItems.indexOf(item) == -1) { |
|
|
var range = this.itemSet.body.range; // TODO: not nice accessing the range like this
|
|
|
var range = this.itemSet.body.range; // TODO: not nice accessing the range like this
|
|
|
this._checkIfVisible(item, this.visibleItems, range); |
|
|
this._checkIfVisible(item, this.visibleItems, range); |
|
|
} |
|
|
} |
|
|