I’ve noticed the view’s content height can update when the document scrolls - presumably because it waits to measure line heights until they are in/near viewport.
This is especially noticeable when i have line wrapping turned on.
I’m building a “semantic scrollbar” like the image below:
The challenge is this scrollbar expects to know the total height up front, and when the content height changes, the decorations are recomputed based on the new line heights %s and jump around.
Curious if you have any ideas, or if I’m missing a way to force a full re-measurement in certain situations (like when the view is first mounted/resized)