mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
* Add FAQ about DataTable scrolling. Related issues: #2458 * Write concisely. * Update questions/datatable-doesnt-scroll.question.md Co-authored-by: Will McGugan <willmcgugan@gmail.com> * Remove example. * Add recommendation. --------- Co-authored-by: Will McGugan <willmcgugan@gmail.com>
579 B
579 B
title, alt_titles
| title | alt_titles | ||
|---|---|---|---|
| Why doesn't the `DataTable` scroll programmatically? |
|
If scrolling in your DataTable is apparently broken, it may be because your DataTable is using the default value of height: auto.
This means that the table will be sized to fit its rows without scrolling, which may cause the container (typically the screen) to scroll.
If you would like the table itself to scroll, set the height to something other than auto, like 100%.