mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Fix RichTextLabel discards appended BBCode text on window resize when using DynamicFont
(cherry picked from commit 0a386084bc)
This commit is contained in:
committed by
Rémi Verschelde
parent
d6360d4c3c
commit
6d30f26d25
@@ -1016,20 +1016,17 @@ void RichTextLabel::_notification(int p_what) {
|
||||
update();
|
||||
}
|
||||
} break;
|
||||
case NOTIFICATION_RESIZED: {
|
||||
case NOTIFICATION_RESIZED:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
main->first_invalid_line = 0; //invalidate ALL
|
||||
update();
|
||||
|
||||
} break;
|
||||
case NOTIFICATION_THEME_CHANGED:
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
if (bbcode != "") {
|
||||
set_bbcode(bbcode);
|
||||
}
|
||||
|
||||
main->first_invalid_line = 0; //invalidate ALL
|
||||
update();
|
||||
|
||||
} break;
|
||||
case NOTIFICATION_DRAW: {
|
||||
_validate_line_caches(main);
|
||||
|
||||
Reference in New Issue
Block a user