-
Notifications
You must be signed in to change notification settings - Fork 814
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
Writing to a hidden RichLog breaks table alignment #4118
Comments
I think you're right about Perhaps you could set |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
The fix is in main. It will be in next week's release. |
Ah - thanks for pointing that out. I should have checked instead of assumed :) |
I've got a
RichLog
that is often hidden and I write text to it. I'm using aRich.Table
to left/right justify two pieces of text on a single line.This works as expected while the widget is shown.
If the widget has either
visible=False
ordisplay=False
set, then any text written during that time is collapsed together into a single string.I'm not sure if this is a side effect of not having the widget displayed (no space is calculated for it so it doesn't know what sizes to use when writing the
Table
?) or not. If this is working as expected, might there be any way to write to the widget while it's hidden but preserve the appropriate sizing?The following is an example of writing to the widget both while it is shown, has
visible=False
anddisplay=False
.Example Code (same that produced
gif
above).Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
Feel free to add screenshots and / or videos. These can be very helpful!
The text was updated successfully, but these errors were encountered: