Skip to content
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

fix: patch mixing width 100% with width auto #4367

Conversation

TomJGooding
Copy link
Contributor

@TomJGooding TomJGooding commented Mar 30, 2024

Fixes #4360 by reverting the change in f094588. This change was intended to fix the issue with Button widths in #4024, but seems to have had wider unintended consequences. Instead this PR fixes the button width issue by adding a get_content_width override to button, which passes all tests.

There may be a wider issue with how relative sizes are handled in Textual, but this patch at least seems to provide a temporary fix.

This will also fix #4354 and other issues mentioned in #4360.

Please review the following checklist.

  • Docstrings on all new or modified functions / classes
  • Updated documentation
  • Updated CHANGELOG.md (where appropriate)

@TomJGooding
Copy link
Contributor Author

TomJGooding commented Mar 30, 2024

EDIT: All tests now pass after poking CI to run again, not sure what was the cause of the previous error.

This is failing in CI not due to these changes but because Cannot install tree-sitter-languages. Not sure if recent changes today may have caused this.

@TomJGooding TomJGooding marked this pull request as ready for review March 30, 2024 20:25
@TomJGooding
Copy link
Contributor Author

Closed in favour of #4369.

@TomJGooding TomJGooding closed this Apr 1, 2024
@TomJGooding TomJGooding deleted the fix-patch-mixing-width-100-percent-with-width-auto branch April 1, 2024 12:38
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.

width: 100% mixed with width: auto amongst children has changed recently Merlin example app broken
1 participant