lttng / lttng-scope

A trace viewer and analyzer for LTTng kernel and user space traces
https://lttng.org/beta/#lttng-scope
Eclipse Public License 1.0
28 stars 6 forks source link

Selecting of a visible event in the event table result in a move of the event table #65

Open PSRCode opened 6 years ago

PSRCode commented 6 years ago

1- Do a selection inside the thread view 2- The event table will update to the selection 3- Click on a visible event in the event table 4- Other view update 5- The event table will move even if it is not necessary.

PSRCode commented 6 years ago

Not sure if a bug ... in the end ... it was less obvious that it is refreshed to place the selected event in the middle of the view. In a small view it looks weird.

We might want to revisit how we do this.

ghost commented 6 years ago

Yeah it's a known limitation of the current implementation. Turns out that it is not straightforward to determine "is the selected event currently in the visible table area?". It should be doable, but would probably require tracking the scrollbar position by ourselves.

For now I just had it recenter on every selection. But it's a very valid comment, if the new selection is already visible then it should not recenter.