mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add text trimming in LinkButton
This commit is contained in:
parent
0fdb93cde6
commit
687aa56ec8
6 changed files with 43 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue