-
Notifications
You must be signed in to change notification settings - Fork 89
Description
Hello!
I am seeing negative numbers in the panel

This happens when I add height="79vh" to vue-excel-editor
<vue-excel-editor
height="79vh"
Also if I add :page="100" as well then I also see negative numbers in the left panel:
(It doesn't matter if px are used instead of vh the issue can be reproduced by adding
:page="100"
height="490px")
I believe this has to do something with these calculations:
this.pageTop = Math.round((this.table.length - this.pageSize) * ratio);
Here if table.length is 24 and page size is 100, this will give negative number because ratio only goes from 0 to 1...
I fixed this by setting height to 'auto' and removing the page size completely.
Just wanted to bring this out to your attention, I don't think it's very critical if height is not important to be set but this caused a lot of headache for me ))
