prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Frame top and bottom row overexpanding
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
Hi there,
Thanks for your amazing library.
I just noticed something that looks a lot like a bug
root_container = Frame(Window(height=2, width=3))
layout = Layout(root_container)
app = Application(layout=layout)
app.run()
When I run this, I get this rendered to the screen:
┌─────────────────────────────────────────────────────────────────────────────────────────────────┐
│ │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────┘
prompt_toolkit version: 3.0.31
python 3.10
Windows 10
Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Python reproducer with Frame, Window, Layout, and Application.run to confirm the top and bottom rows expand beyond the requested 2x3 size. Trace the layout sizing from Window through Frame and Layout, then verify that the rendered output respects the requested dimensions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100