Browse Source

Merge pull request #238976 in DEC/fineui from bugfix/11.0 to feature/x

* commit '9e87c816a7dbb4c72c4eb581fff0ba6f3f931340':
  BI-126486 fix: 分组表滚动条拖不动【样板客户】
master
superman 2 years ago
parent
commit
d6cf4edd01
  1. 4
      src/base/collection/collection.js

4
src/base/collection/collection.js

@ -345,7 +345,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
return; return;
} }
this._scrollLock = true; this._scrollLock = true;
this.options.scrollLeft = BI.clamp(scrollLeft || 0, 0, this._getMaxScrollLeft()); this.options.scrollLeft = BI.clamp(scrollLeft || 0, 0, this._getMaxScrollLeft() || scrollLeft);
this._debounceRelease(); this._debounceRelease();
this.element.scrollLeft(this.options.scrollLeft); this.element.scrollLeft(this.options.scrollLeft);
this._calculateChildrenToRender(); this._calculateChildrenToRender();
@ -356,7 +356,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
return; return;
} }
this._scrollLock = true; this._scrollLock = true;
this.options.scrollTop = BI.clamp(scrollTop || 0, 0, this._getMaxScrollTop()); this.options.scrollTop = BI.clamp(scrollTop || 0, 0, this._getMaxScrollTop() || scrollTop);
this._debounceRelease(); this._debounceRelease();
this.element.scrollTop(this.options.scrollTop); this.element.scrollTop(this.options.scrollTop);
this._calculateChildrenToRender(); this._calculateChildrenToRender();

Loading…
Cancel
Save