Browse Source

Pull request #2545: BI-101931 virtualgrouplist稍快滚动大量空白

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

* commit '41ec1a93483d6540ccfaee0feeb1bbde96811b51':
  更新icon-font
  BI-101931 virtualgrouplist稍快滚动大量空白
es6
windy 3 years ago
parent
commit
145e95b9fe
  1. BIN
      dist/font/iconfont.eot
  2. 1492
      dist/font/iconfont.svg
  3. BIN
      dist/font/iconfont.ttf
  4. BIN
      dist/font/iconfont.woff
  5. BIN
      dist/font/iconfont.woff2
  6. 11
      src/base/list/virtualgrouplist.js

BIN
dist/font/iconfont.eot vendored

Binary file not shown.

1492
dist/font/iconfont.svg vendored

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 470 KiB

After

Width:  |  Height:  |  Size: 538 KiB

BIN
dist/font/iconfont.ttf vendored

Binary file not shown.

BIN
dist/font/iconfont.woff vendored

Binary file not shown.

BIN
dist/font/iconfont.woff2 vendored

Binary file not shown.

11
src/base/list/virtualgrouplist.js

@ -61,10 +61,17 @@ BI.VirtualGroupList = BI.inherit(BI.Widget, {
self.populate(newValue);
}) : o.items;
this._populate();
this.element.scroll(BI.debounce(function (e) {
this.ticking = false;
this.element.scroll(function() {
o.scrollTop = self.element.scrollTop();
if (!self.ticking) {
requestAnimationFrame(function () {
self._calculateBlocksToRender();
}, 30));
self.ticking = false;
});
self.ticking = true;
}
});
BI.ResizeDetector.addResizeListener(this, function () {
self._calculateBlocksToRender();
});

Loading…
Cancel
Save