Skip to content

Negative numbers in left side panel #73

@sergeyayz

Description

@sergeyayz

Hello!

I am seeing negative numbers in the panel
Image

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:

Image

(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 ))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions