|
|
@ -45,8 +45,16 @@ BI.ListView = BI.inherit(BI.Widget, { |
|
|
|
o.scrollTop = self.element.scrollTop(); |
|
|
|
o.scrollTop = self.element.scrollTop(); |
|
|
|
self._calculateBlocksToRender(); |
|
|
|
self._calculateBlocksToRender(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
var lastWidth = this.element.width(), |
|
|
|
|
|
|
|
lastHeight = this.element.height(); |
|
|
|
BI.ResizeDetector.addResizeListener(this, function () { |
|
|
|
BI.ResizeDetector.addResizeListener(this, function () { |
|
|
|
|
|
|
|
var width = self.element.width(), |
|
|
|
|
|
|
|
height = self.element.height(); |
|
|
|
|
|
|
|
if (width !== lastWidth || height !== lastHeight) { |
|
|
|
|
|
|
|
lastWidth = width; |
|
|
|
|
|
|
|
lastHeight = height; |
|
|
|
self._calculateBlocksToRender(); |
|
|
|
self._calculateBlocksToRender(); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|