|
|
@ -61,10 +61,17 @@ BI.VirtualGroupList = BI.inherit(BI.Widget, { |
|
|
|
self.populate(newValue); |
|
|
|
self.populate(newValue); |
|
|
|
}) : o.items; |
|
|
|
}) : o.items; |
|
|
|
this._populate(); |
|
|
|
this._populate(); |
|
|
|
this.element.scroll(BI.debounce(function (e) { |
|
|
|
this.ticking = false; |
|
|
|
|
|
|
|
this.element.scroll(function() { |
|
|
|
o.scrollTop = self.element.scrollTop(); |
|
|
|
o.scrollTop = self.element.scrollTop(); |
|
|
|
|
|
|
|
if (!self.ticking) { |
|
|
|
|
|
|
|
requestAnimationFrame(function () { |
|
|
|
self._calculateBlocksToRender(); |
|
|
|
self._calculateBlocksToRender(); |
|
|
|
}, 30)); |
|
|
|
self.ticking = false; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
self.ticking = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
BI.ResizeDetector.addResizeListener(this, function () { |
|
|
|
BI.ResizeDetector.addResizeListener(this, function () { |
|
|
|
self._calculateBlocksToRender(); |
|
|
|
self._calculateBlocksToRender(); |
|
|
|
}); |
|
|
|
}); |
|
|
|