KEMBAR78
Implement fit content width in TextEdit by aaronfranke · Pull Request #83070 · godotengine/godot · GitHub
Skip to content

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
@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