windy 3 years ago
parent
commit
6b1c130513
  1. 2
      src/base/collection/collection.js
  2. 5
      src/base/grid/grid.js

2
src/base/collection/collection.js

@ -276,7 +276,6 @@ BI.CollectionView = BI.inherit(BI.Widget, {
this.options.items = items;
this._calculateSizeAndPositionData();
}
if (o.items.length > 0) {
this.container.setWidth(this._width);
this.container.setHeight(this._height);
@ -288,7 +287,6 @@ BI.CollectionView = BI.inherit(BI.Widget, {
} catch (e) {
}
this._calculateChildrenToRender();
}
},
setScrollLeft: function (scrollLeft) {

5
src/base/grid/grid.js

@ -262,7 +262,6 @@ BI.GridView = BI.inherit(BI.Widget, {
this.options.items = items;
this._calculateSizeAndPositionData();
}
if (o.items.length > 0) {
this.container.setWidth(this._getContainerWidth());
this.container.setHeight(this._getContainerHeight());
@ -274,10 +273,6 @@ BI.GridView = BI.inherit(BI.Widget, {
} catch (e) {
}
this._calculateChildrenToRender();
} else {
this.container.setWidth("auto");
this.container.setHeight("auto");
}
},
setScrollLeft: function (scrollLeft) {

Loading…
Cancel
Save