diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-09-01 08:16:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 08:16:52 +0200 |
commit | 89f0886425eba7b3590cef0b48b1fdc55d63e2a6 (patch) | |
tree | 979bb9acfc0d2ca7175549e65e27fa7f8437c594 /scene/gui/button.cpp | |
parent | e67c967cbcc4bc0ab20d4ae77d47d2812c6242e8 (diff) | |
parent | 7aad14a4b6d7ef722851a8c4f9fcafa5b48666b3 (diff) |
Merge pull request #65073 from bruvzg/trim_spaces
[TextServer] Add support for trimming edge spaces on line break.
Diffstat (limited to 'scene/gui/button.cpp')
-rw-r--r-- | scene/gui/button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/button.cpp b/scene/gui/button.cpp index 0b7280619e..c7b64ba6c6 100644 --- a/scene/gui/button.cpp +++ b/scene/gui/button.cpp @@ -544,7 +544,7 @@ void Button::_bind_methods() { Button::Button(const String &p_text) { text_buf.instantiate(); - text_buf->set_break_flags(TextServer::BREAK_MANDATORY); + text_buf->set_break_flags(TextServer::BREAK_MANDATORY | TextServer::BREAK_TRIM_EDGE_SPACES); set_mouse_filter(MOUSE_FILTER_STOP); set_text(p_text); |