We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This example creates a DataTable with a height of 2, but I think it should be 3 (header, row, and horizontal scrollbar).
DataTable
height
2
3
from textual.app import App, ComposeResult from textual.widgets import DataTable class Test(App): DEFAULT_CSS = """ DataTable { height: auto; } """ def compose(self) -> ComposeResult: yield DataTable(id="table") def on_mount(self) -> None: table = self.get_child_by_id("table", DataTable) table.add_column("test") table.add_row("a" * 200) Test().run()
The text was updated successfully, but these errors were encountered:
I've been getting around this with min-height: 3;.
min-height: 3;
Sorry, something went wrong.
I'm not convinced this should be the case. It means the datatable widget will have to change its dimensions based on the visibility of the scrollbar.
I think in these circumstances you are better off setting the scrollbar to always visible
Closing as working as intended.
https://label.dev/wontfix/
Don't forget to star the repository!
Follow @textualizeio for Textual updates.
No branches or pull requests
This example creates a
DataTable
with aheight
of2
, but I think it should be3
(header, row, and horizontal scrollbar).The text was updated successfully, but these errors were encountered: