Skip to content

Fix bug causing List.Width to not be respected #749

New issue

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ian-howell
Copy link

This addresses a bug when rendering Lists that causes them to ignore the width value provided by New and SetSize. It works by extending the existing "truncate" logic with additional padding logic to ensure that each line of text is exactly the width of the list.

This addresses #744

This addresses a bug when rendering Lists that causes them to ignore the
`width` value provided by `New` and `SetSize`. It works by extending the
existing "truncate" logic with additional padding logic to ensure that
each line of text is exactly the width of the list.
@ian-howell ian-howell requested a review from meowgorithm as a code owner March 15, 2025 20:14
@kalyncoose
Copy link

I believe the root cause is actually the help text rendering past the list's m.width, re: #744 (comment)

@kalyncoose
Copy link

I believe the root cause is actually the help text rendering past the list's m.width, re: #744 (comment)

New PR: #760

@ian-howell
Copy link
Author

The original issue didn't have the help message shown though...

@kalyncoose
Copy link

The original issue didn't have the help message shown though...

That's okay maybe both our PRs are needed then. Separate issues, same component.

@ian-howell
Copy link
Author

@meowgorithm Sorry to bother, but could I please get a review on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants