Skip to content

Commit 0098a48

Browse files
authored
Merge pull request swimlane#1229 from ivankolev/master
swimlane#880, make the demo at /#virtual-paging work properly
2 parents 7e2c086 + 3706e0d commit 0098a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/body/body.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class DataTableBodyComponent implements OnInit, OnDestroy {
207207
* calculate scroll height automatically (as height will be undefined).
208208
*/
209209
get scrollHeight(): number | undefined {
210-
if (this.scrollbarV) {
210+
if (this.scrollbarV && this.rowCount) {
211211
return this.rowHeightsCache.query(this.rowCount - 1);
212212
}
213213
// avoid TS7030: Not all code paths return a value.

0 commit comments

Comments
 (0)