Skip to content
Discussion options

You must be logged in to vote

It's not intuitive, but the reason that there is no space for the tables is that they have max-height: 100%, which doesn't work well with auto height.

We will have a better solution in the future, for now you can work around it by setting a different value for max-height, e.g. max-height: 100vh

from textual.app import App, ComposeResult
from textual.containers import Container, Horizontal, Vertical, VerticalScroll
from textual.widget import Widget
from textual.widgets import DataTable, Static


class AutoStatic(Static):
    DEFAULT_CSS = """
    AutoStatic {
        width: auto;
    }
    """


class Bar(Horizontal):
    DEFAULT_CSS = """
    Bar {
        background: yellow 20%;

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@davep
Comment options

@otherjason
Comment options

@otherjason
Comment options

@willmcgugan
Comment options

Answer selected by otherjason
@otherjason
Comment options

Comment options

You must be logged in to vote
1 reply
@otherjason
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants