Add text trimming in LinkButton

This commit is contained in:
Michael Alexsander 2025-10-24 19:03:40 -03:00
parent 0fdb93cde6
commit 687aa56ec8
No known key found for this signature in database
GPG key ID: A9C91EE110F4EABA
6 changed files with 43 additions and 30 deletions

View file

@ -321,6 +321,9 @@ String TextLine::get_ellipsis_char() const {
}
void TextLine::set_width(float p_width) {
if (width == p_width) {
return;
}
width = p_width;
if (alignment == HORIZONTAL_ALIGNMENT_FILL || overrun_behavior != TextServer::OVERRUN_NO_TRIMMING) {
dirty = true;