Skip to content

PageTable with scroller shows wrong rows #19

@consros

Description

@consros

If the height is set a scroller within the table appears.
If user scrolls down and changes page, then wrong rows are shown. Moreover, at the begining of page some of rows are shown once again.

This happens because the initial offset is ignored. Instead of it the internal offset of the PagedTableContainer is used, which is page related. Right would be to use both offsets.

Here is a possible correction for this problem:

@Override
public List<?> getItemIds(final int startIndex, final int numberOfItems) {
    return container.getItemIds(this.startIndex, numberOfItems);
}

-->

@Override
public List<?> getItemIds(final int startIndex, final int numberOfItems) {
    return container.getItemIds(this.startIndex + startIndex, numberOfItems);
}

Please check and commit.

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