|
|
@ -55,6 +55,9 @@ BI.ListView = BI.inherit(BI.Widget, { |
|
|
|
var lastWidth = this.element.width(), |
|
|
|
var lastWidth = this.element.width(), |
|
|
|
lastHeight = this.element.height(); |
|
|
|
lastHeight = this.element.height(); |
|
|
|
BI.ResizeDetector.addResizeListener(this, function () { |
|
|
|
BI.ResizeDetector.addResizeListener(this, function () { |
|
|
|
|
|
|
|
if (!self.element.is(":visible")) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
var width = self.element.width(), |
|
|
|
var width = self.element.width(), |
|
|
|
height = self.element.height(); |
|
|
|
height = self.element.height(); |
|
|
|
if (width !== lastWidth || height !== lastHeight) { |
|
|
|
if (width !== lastWidth || height !== lastHeight) { |
|
|
|