-
Notifications
You must be signed in to change notification settings - Fork 830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offset Widgets Popping In And Out While Scrolling #5249
Comments
An MRE should ideally be a bit more minimal than that. But I can reproduce it. It's a clever widget. Kudos. |
In hindsight I definitely could have trimmed the example a bit more. I have edited to be shorter if that helps. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Please try v0.86.2 And keep us posted with your progress. That's an interesting widget! |
Working as intended. Thank you for the quick fix! |
I am working on a timeline widget and have an issue with disappearing/popping widgets if they have an offset set while scrolling off the original region/viewport. I am wondering if this is an intended behaviour or if I will have to change my approach to this functionality in order to prevent popping? Expected behaviour for me would be that the widgets stay in view without disappearing.
From my limited exploration of the textual source code I am thinking that this might be a compositor issue where the viewport logic doesn't properly validate the widgets location with the offset included.
I have added a MRE and video to demonstrate the issue, so please let me know if this needs more information.
Video
offset_bug.webm
Working Example
main.py
Gist
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: