mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-25 18:39:18 +01:00
Fix RichTextLabel discards appended BBCode text on window resize when using DynamicFont
This commit is contained in:
parent
71c28de437
commit
536884aa68
@ -1016,20 +1016,17 @@ void RichTextLabel::_notification(int p_what) {
|
|||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_RESIZED: {
|
case NOTIFICATION_RESIZED:
|
||||||
|
case NOTIFICATION_THEME_CHANGED: {
|
||||||
main->first_invalid_line = 0; //invalidate ALL
|
main->first_invalid_line = 0; //invalidate ALL
|
||||||
update();
|
update();
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_THEME_CHANGED:
|
|
||||||
case NOTIFICATION_ENTER_TREE: {
|
case NOTIFICATION_ENTER_TREE: {
|
||||||
if (bbcode != "") {
|
if (bbcode != "") {
|
||||||
set_bbcode(bbcode);
|
set_bbcode(bbcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
main->first_invalid_line = 0; //invalidate ALL
|
main->first_invalid_line = 0; //invalidate ALL
|
||||||
update();
|
update();
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_DRAW: {
|
case NOTIFICATION_DRAW: {
|
||||||
_validate_line_caches(main);
|
_validate_line_caches(main);
|
||||||
|
Loading…
Reference in New Issue
Block a user