Skip to content

Commit 45ac7e3

Browse files
committed
Update the minimum size of Label if necessary when resizing
Previously, the necessary call to update the minimum size was missing.
1 parent 28cca66 commit 45ac7e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scene/gui/label.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,10 @@ void Label::_notification(int p_what) {
654654
} break;
655655

656656
case NOTIFICATION_RESIZED: {
657-
lines_dirty = true;
657+
if (autowrap_mode != TextServer::AUTOWRAP_OFF || overrun_behavior != TextServer::OVERRUN_NO_TRIMMING) {
658+
lines_dirty = true;
659+
update_minimum_size();
660+
}
658661
} break;
659662
}
660663
}

0 commit comments

Comments
 (0)