Skip to content

Add generic way to determine total number of rows for table-output-component #792

@bhufmann

Description

@bhufmann

For the events table there is an indexing loop (see trace-context-component method updateTrace()) that checks for number of events and updates the nbEvents which then triggers the function call componentDidUpdate() in table-output-component. The componentDidUpdate() sets the infiniteRowCount which then updates the vertical scrollbar. When opening the table with a segment store there is no corresponding indexing loop that updates the nbEvents and the scrollbar.

Setting the row count only when fetching the table lines works, only when the fetchTableLines call to fill the table initially returns the final total number of segments i.e. that the back-end has the value available at that time.

I think there should be a generic way to determine the table size for any virtual table data providers. The data provider API might have to be augmented for that.

Originally posted by @bhufmann in #784 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Theia UIfrontendTrace ServerInvolve changes in the trace server itself (in the incubator source code)bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions