-
Notifications
You must be signed in to change notification settings - Fork 852
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
Textual 2.0 Regression - Auto no longer making widgets / containers as small as possible #5550
Comments
We found the following entries in the FAQ which you may find helpful:
Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review. This is an automated reply, generated by FAQtory |
Is this related to #5407 ? |
@davidfokkema I think so, yes. The container is auto, and the children are auto. |
Neat! My example made it into the test suite! |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
I often copy MREs for use as tests. I wouldn't be surprised if there was more from you! |
Very nice! This happens to also fix an issue in my grading app I noticed yesterday when quickly trying it out with 2.0. Splat! Another bug squashed 🪳 |
Have you checked closed issues? (https://github.com/Textualize/textual/issues?q=is%3Aissue+is%3Aclosed) - YES
Have you checked against the most recent version of Textual? (https://pypi.org/search/?q=textual) - YES
Feature requests
Please post feature requests to Ideas. (https://github.com/Textualize/textual/discussions/categories/ideas)
The bug
Please give a brief but clear explanation of the issue. If you can, include a complete working example that demonstrates the bug. Check it can run without modifications.
Using
auto
to set the height of aHorizontal
container used to make a row of widgets shrink to the smallest size possible while showing the widgets. This worked in Textual 1.0 and earlier. In 2.0.0, theHorizontal
container is taking up around 50% of the height.Python code:
CSS code:
Screenshot using Textual 1.0:
Screenshot using Textual 2.0.0
It will be helpful if you run the following command and paste the results:
Results of running the above command:
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
If you don't have the
textual
command on your path, you may have forgotten to install thetextual-dev
package.Feel free to add screenshots and / or videos. These can be very helpful!
The text was updated successfully, but these errors were encountered: