-
Notifications
You must be signed in to change notification settings - Fork 815
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
Additional containers #1957
Comments
There's some text about whether |
Trying to think as someone who just found Textual, a container called Why don't we let |
The problem is that people liberally add these containers, but they generally only want a single container to scroll. If they mess up the styling, and everyone will first attempt, it can be very confusing when you get a scrollbar you don't want. Because you don't know which container really is scrolling. I think its easier to design a UI if you have to explicitly say which container(s) should scroll. |
Then, should the default value of |
@willmcgugan what non-overflowing version are you going for?
|
Also, do you literally mean for |
(not answering for Will, of course) I think it would only make sense for it to act on the immediate children What's being spoken about here is sort of a follow on from this FAQ. |
This one.
|
This container will centre children horizontally. Related issues: #1957.
@willmcgugan I think it is more intuitive if the default styling of Let me know your decision and then I am ready to PR this. |
Leave the Center / Middle dimensions as blank, as it will compensate for margin. |
After a quick chat, we agreed we'd set the relevant dimension to |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
We need a few additions / modifications to containers.py
Center
to horizontally align contents (width 100%, height auto)Middle
to vertically align contents.Horizontal
should have scrollbars disabled by defaultVertical
should have scrollbars disabled by defaultHorizontalScroll
should have horizontal layout and scrollbars autoVerticalScroll
should have vertical layout and scrollbars autoThe text was updated successfully, but these errors were encountered: