Browse Source

Pull request #3561: BI-126486 fix: 分组表滚动条拖不动【样板客户】

Merge in VISUAL/fineui from ~DAILER/fineui:es6 to es6

* commit 'cc075cc34cab2a451e96320e7c38dc2e255fdca4':
  BI-126486 fix: 分组表滚动条拖不动【样板客户】
es6
Dailer-刘荣歆 1 year ago
parent
commit
4694f554da
  1. 5
      packages/fineui/src/base/collection/collection.js

5
packages/fineui/src/base/collection/collection.js

@ -400,12 +400,13 @@ export class CollectionView extends Widget {
} catch (e) {}
this._calculateChildrenToRender();
}
setScrollLeft(scrollLeft) {
if (this.options.scrollLeft === scrollLeft) {
return;
}
this._scrollLock = true;
this.options.scrollLeft = clamp(scrollLeft || 0, 0, this._getMaxScrollLeft());
this.options.scrollLeft = clamp(scrollLeft || 0, 0, this._getMaxScrollLeft() || scrollLeft);
this._debounceRelease();
this.element.scrollLeft(this.options.scrollLeft);
this._calculateChildrenToRender();
@ -416,7 +417,7 @@ export class CollectionView extends Widget {
return;
}
this._scrollLock = true;
this.options.scrollTop = clamp(scrollTop || 0, 0, this._getMaxScrollTop());
this.options.scrollTop = clamp(scrollTop || 0, 0, this._getMaxScrollTop() || scrollTop);
this._debounceRelease();
this.element.scrollTop(this.options.scrollTop);
this._calculateChildrenToRender();

Loading…
Cancel
Save