windy 7 years ago
parent
commit
0b00f33371
  1. 8
      bi/base.js
  2. 8
      dist/base.js
  3. 8
      dist/bundle.js
  4. 4
      dist/bundle.min.js
  5. 4
      src/base/collection/collection.js
  6. 4
      src/base/grid/grid.js

8
bi/base.js

@ -2805,8 +2805,12 @@ BI.CollectionView = BI.inherit(BI.Widget, {
this.container.setHeight(this._height);
this._calculateChildrenToRender();
//元素未挂载时不能设置scrollTop
try {
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
} catch (e) {
}
}
},
@ -14985,8 +14989,12 @@ BI.GridView = BI.inherit(BI.Widget, {
this._rowSizeAndPositionManager = new BI.ScalingCellSizeAndPositionManager(this.rowCount, o.rowHeightGetter, o.estimatedRowSize);
this._calculateChildrenToRender();
//元素未挂载时不能设置scrollTop
try {
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
} catch (e) {
}
},
setScrollLeft: function (scrollLeft) {

8
dist/base.js vendored

@ -2805,8 +2805,12 @@ BI.CollectionView = BI.inherit(BI.Widget, {
this.container.setHeight(this._height);
this._calculateChildrenToRender();
//元素未挂载时不能设置scrollTop
try {
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
} catch (e) {
}
}
},
@ -14985,8 +14989,12 @@ BI.GridView = BI.inherit(BI.Widget, {
this._rowSizeAndPositionManager = new BI.ScalingCellSizeAndPositionManager(this.rowCount, o.rowHeightGetter, o.estimatedRowSize);
this._calculateChildrenToRender();
//元素未挂载时不能设置scrollTop
try {
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
} catch (e) {
}
},
setScrollLeft: function (scrollLeft) {

8
dist/bundle.js vendored

@ -28583,8 +28583,12 @@ BI.CollectionView = BI.inherit(BI.Widget, {
this.container.setHeight(this._height);
this._calculateChildrenToRender();
//元素未挂载时不能设置scrollTop
try {
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
} catch (e) {
}
}
},
@ -40763,8 +40767,12 @@ BI.GridView = BI.inherit(BI.Widget, {
this._rowSizeAndPositionManager = new BI.ScalingCellSizeAndPositionManager(this.rowCount, o.rowHeightGetter, o.estimatedRowSize);
this._calculateChildrenToRender();
//元素未挂载时不能设置scrollTop
try {
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
} catch (e) {
}
},
setScrollLeft: function (scrollLeft) {

4
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

4
src/base/collection/collection.js

@ -279,8 +279,12 @@ BI.CollectionView = BI.inherit(BI.Widget, {
this.container.setHeight(this._height);
this._calculateChildrenToRender();
//元素未挂载时不能设置scrollTop
try {
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
} catch (e) {
}
}
},

4
src/base/grid/grid.js

@ -244,8 +244,12 @@ BI.GridView = BI.inherit(BI.Widget, {
this._rowSizeAndPositionManager = new BI.ScalingCellSizeAndPositionManager(this.rowCount, o.rowHeightGetter, o.estimatedRowSize);
this._calculateChildrenToRender();
//元素未挂载时不能设置scrollTop
try {
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
} catch (e) {
}
},
setScrollLeft: function (scrollLeft) {

Loading…
Cancel
Save