You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It is somewhat awkward to programmatically scroll a large multiline TextEdit to a specific line. After some head scratching and looking through the text layout code, I came up with this:
The issue is that the developer needs to exactly, precisely reproduce how the layout code works -- tiny errors become big errors when scrolling to a large enough offset.
Describe the solution you'd like
It would be nice if a TextEdit had a scroll_to_line() method or something similar.
Describe alternatives you've considered
Is there currently a simpler way to accomplish what I wrote above? I certainly might have missed a method that would give me the pixel-perfect line height for a font, for example.
Additional context
<3
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It is somewhat awkward to programmatically scroll a large multiline TextEdit to a specific line. After some head scratching and looking through the text layout code, I came up with this:
The issue is that the developer needs to exactly, precisely reproduce how the layout code works -- tiny errors become big errors when scrolling to a large enough offset.
Describe the solution you'd like
It would be nice if a TextEdit had a
scroll_to_line()
method or something similar.Describe alternatives you've considered
Is there currently a simpler way to accomplish what I wrote above? I certainly might have missed a method that would give me the pixel-perfect line height for a font, for example.
Additional context
<3
The text was updated successfully, but these errors were encountered: