-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
When maximising a Widget, in some cases it happens that the widget becomes very narrow and no change in CSS, even using the -maximized class allows it to grow more than ~15% of the total width of the terminal.
You can definitely make the widget narrower (so changing the size generally works), but there seems to be a something constraining it and preventing it to grow beyond that narrow value.
Since this issue doesn't seem to happen in most cases, it might be connected to a particular App/Widget/Screen setup. I've put together a MRE here
Steps to reproduce:
- Run the MRE
- Press Tab twice to focus the "Article" wide
- Maximize it
What results is the article widget actually shrinking. The Yellow background shows the entire width of the widget.
Textual Diagnostics
Versions
| Name | Value |
|---|---|
| Textual | 0.83.0 |
| Rich | 13.9.2 |
Python
| Name | Value |
|---|---|
| Version | 3.12.6 |
| Implementation | CPython |
| Compiler | Clang 15.0.0 (clang-1500.3.9.4) |
| Executable | /Users/[...]/.venv/bin/python |
Operating System
| Name | Value |
|---|---|
| System | Darwin |
| Release | 24.0.0 |
| Version | Darwin Kernel Version 24.0.0: Tue Sep 24 23:39:07 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6000 |
Terminal
| Name | Value |
|---|---|
| Terminal Application | iTerm.app (3.5.5) |
| TERM | xterm-256color |
| COLORTERM | truecolor |
| FORCE_COLOR | Not set |
| NO_COLOR | Not set |
Rich Console options
| Name | Value |
|---|---|
| size | width=214, height=52 |
| legacy_windows | False |
| min_width | 1 |
| max_width | 214 |
| is_terminal | True |
| encoding | utf-8 |
| max_height | 52 |
| justify | None |
| overflow | None |
| no_wrap | False |
| highlight | None |
| markup | None |
| height | None |
Metadata
Metadata
Assignees
Labels
No labels
