rappen / PluginTraceViewer

Investigate the Microsoft Dataverse Plugin Trace Log with easy filtering and display possibilities
https://JonasR.app/PTV
GNU General Public License v3.0
12 stars 5 forks source link

Scroll Bars are too Scrolly #78

Closed daryllabar closed 4 years ago

daryllabar commented 6 years ago

https://www.screencast.com/t/unddiQfAv

When clicking in the text box, it scrolls to the top...

rappen commented 6 years ago

Simple explanation: When the content is changed (selecting a new row) the cursor position is set to 0;0. When the textbox gets focus, the control makes sure the cursor position is visible.

Solution 1: Make sure textbox is always scrolled to top when selecting new row. Downside: trying to compare content "far down" of different log records gets hard. Solution 2: Try to place cursor at top;left position in currently visible text based on current scroll-state. Downside: how to implement?

daryllabar commented 6 years ago

It makes it even worse when you scroll with the mouse wheel, and then click, because if you scroll to the bottom, it doesn't register focus and then you click to highlight something, and it throws you up to the top...

daryllabar commented 6 years ago

If you can get the scroll bar height, and the number of newlines, you can calculate a percentage...

rappen commented 6 years ago

Pull Requests welcome!! 😁

daryllabar commented 6 years ago

Raise the Bar episode 9?

rappen commented 6 years ago

Hit it! 💪

rappen commented 4 years ago

I guess this never made it to Raise the Bar... 😉