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

Implement fit content width in TextEdit #83070

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

aaronfranke
Copy link
Member

TextEdit already has scroll_fit_content_height, but there is no equivalent for width. This PR adds scroll_fit_content_width with the same behavior for width. When both are enabled, there are no scrollbars. I have tested that this works correctly in The Mirror and in a minimal project.

@aaronfranke aaronfranke added this to the 4.x milestone Oct 9, 2023
@aaronfranke aaronfranke requested review from a team as code owners October 9, 2023 22:00
@bruvzg
Copy link
Member

bruvzg commented Oct 10, 2023

Is it working with line wrapping enabled?

@aaronfranke
Copy link
Member Author

@bruvzg Yes. When wrap mode is set to Boundary it wraps instead of getting wider, behaving the same as if this setting is disabled. Note that these settings are intended to be mutually exclusive, having both enabled is not useful.

Co-authored-by: Kit Bishop <kitbdev@gmail.com>
@akien-mga akien-mga modified the milestones: 4.x, 4.4 Aug 27, 2024
@akien-mga akien-mga merged commit 62e98ed into godotengine:master Aug 27, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

6 participants