Add generic way to determine total number of rows for table-output-component #792
Labels
bug
Something isn't working
Theia UI
frontend
Trace Server
Involve changes in the trace server itself (in the incubator source code)
For the events table there is an indexing loop (see
trace-context-component
methodupdateTrace()
) that checks for number of events and updates the nbEvents which then triggers the function callcomponentDidUpdate()
intable-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)
The text was updated successfully, but these errors were encountered: