Revert "scroller: no reflow if nothing changed"

This reverts commit a29eeedc66.
cache
Varun Patil 2022-10-14 16:42:13 -07:00
parent a29eeedc66
commit b31146097e
1 changed files with 0 additions and 7 deletions

View File

@ -124,15 +124,8 @@ export default class ScrollerManager extends Mixins(GlobalMixin) {
this.recreate();
}
// Height of recycler view
const oldRecyclerHeight = this.recyclerHeight;
this.recyclerHeight = this.recycler.$refs.wrapper.clientHeight;
// Check if nothing changed
if (orderOnly && oldRecyclerHeight === this.recyclerHeight) {
return;
}
// Static extra height at top
const rb = this.recyclerBefore as Element;
const extraHeight = rb?.clientHeight || 0;