-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[BUG] Tracebacks don't expand to fit height properly #2042
Comments
The issue is that height is being passed to the panel within the traceback. There are a few issue like this to be resolved, since prior to Textual Rich didn't have any concept of height. |
Could you try with version 12.0.0a2
|
That's much better (using 12.0.0, though incompatible with textual ATM). It chops off the bottom if the surrounding container is shorter than the traceback, but I think that's the correct / expected behavior, and much better than the "scale inside frame" to fit. :) |
Thanks for the fast fix! |
Did I solve your problem? Why not buy the devs a coffee to say thanks? |
Textual v0.1.17 bumps the Rich dependancy |
Describe the bug
If you put a Traceback inside a container with a height, it exactly chops off the message at the bottom (regardless of how many lines it has, tested with 1 and a longer message producing 2), and instead matches the frame around the traceback. This is currently causing an issue when placing a traceback in a panel in textual.
MWE:
The output has chopped off the bottom of the traceback:
If you do not set the height externally (remove
height=20
above), then the correct height is computed:Platform
Click to expand for output
macOS iterm2.
The text was updated successfully, but these errors were encountered: