Browse Source

Pull request #2201: BI-94391 fix: grid populate空数组滚动条仍然存在

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit '6b1c1305138e5edb7cb694636710d73352176992':
  更新
  BI-94391 fix: grid populate空数组滚动条仍然存在
es6
windy 3 years ago
parent
commit
656f323258
  1. 2
      src/base/collection/collection.js
  2. 2
      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.options.items = items;
this._calculateSizeAndPositionData(); this._calculateSizeAndPositionData();
} }
if (o.items.length > 0) {
this.container.setWidth(this._width); this.container.setWidth(this._width);
this.container.setHeight(this._height); this.container.setHeight(this._height);
@ -288,7 +287,6 @@ BI.CollectionView = BI.inherit(BI.Widget, {
} catch (e) { } catch (e) {
} }
this._calculateChildrenToRender(); this._calculateChildrenToRender();
}
}, },
setScrollLeft: function (scrollLeft) { setScrollLeft: function (scrollLeft) {

2
src/base/grid/grid.js

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

Loading…
Cancel
Save