Log instead of throwing error

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-07-16 00:16:19 +05:30
parent ec8b6f9dd2
commit 611524cdda

View file

@ -99,7 +99,7 @@ export class LazyListView extends ListView {
await new Promise(r => requestAnimationFrame(r)); await new Promise(r => requestAnimationFrame(r));
this._height = this._parent.clientHeight; this._height = this._parent.clientHeight;
if(this._height === 0) { throw "LazyListView could not calculate parent height."} if (this._height === 0) { console.error("LazyListView could not calculate parent height."); }
const range = this._getVisibleRange(); const range = this._getVisibleRange();
const renderRange = range.expand(this._overflowItems); const renderRange = range.expand(this._overflowItems);
this._renderRange = renderRange; this._renderRange = renderRange;