anchor visual scroll position when adding widgets above the viewport #6575
fuzzybritches0
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
|
I'm afraid its not clear to me what you are looking for. I'm assuming your fork is AI generated, but it isn't going to help me understand your issue. I'd suggest an MRE (a short self contained code example) or possibly a diagram, and and a more detailed explanation... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to load Markdown widgets above the viewport and want to implement on demand loading of Markdown widgets, since loading many Markdown widgets onto one container can make the app very slow and cumbersome to use.
I couldn't find a way to have the visual scroll position persist when adding widgets above the viewport. So I tried to override some base methods but I couldn't make it workI Then I looked closer at the code and found a way. I really don't know if this is the right way to do it, or if there is a better way already. So I'm reaching out for help. But if it is, and if useful to others, I'll be happy to have it pulled.
https://github.com/fuzzybritches0/textual/tree/anchor_visual
Cheers
Beta Was this translation helpful? Give feedback.
All reactions