Textualize / textual

The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
https://textual.textualize.io/
MIT License
25.46k stars 782 forks source link

Select widget content not appearing in overlay #5161

Open darrenburns opened 3 days ago

darrenburns commented 3 days ago

Some times when I open the Select dropdown using the keyboard, the content in the dropdown is not visible, it's just an empty box. It's still functional, but nothing is visible.

I'm not sure the conditions to replicate consistently yet - I think it's happening in apps with a lot of widget. Maybe a race condition.

willmcgugan commented 4 hours ago

I can't seem to reproduce this, even with a metric tonne of other widgets.

darrenburns commented 3 hours ago

I wonder if it's relating to the content inside the dropdown. Maybe each line is wrapping and so appears invisible. I'll keep my eyes peeled for clues 🕵️‍♂️

willmcgugan commented 3 hours ago

I did notice that sometimes when the drop down is made visible, there is a frame where the contents are blank, before being filled in.

That puzzles me, because it should all happen in a single update. Seems plausible it is related to the content or wrapping...