Fix multiline texts not updating its contents correctly in the inspector
This commit is contained in:
parent
aa06f515e0
commit
5f28a2f978
1 changed files with 6 additions and 3 deletions
|
@ -611,7 +611,6 @@ void TextEdit::_notification(int p_what) {
|
||||||
|
|
||||||
switch (p_what) {
|
switch (p_what) {
|
||||||
case NOTIFICATION_ENTER_TREE: {
|
case NOTIFICATION_ENTER_TREE: {
|
||||||
|
|
||||||
_update_caches();
|
_update_caches();
|
||||||
if (cursor_changed_dirty)
|
if (cursor_changed_dirty)
|
||||||
MessageQueue::get_singleton()->push_call(this, "_cursor_changed_emit");
|
MessageQueue::get_singleton()->push_call(this, "_cursor_changed_emit");
|
||||||
|
@ -620,12 +619,16 @@ void TextEdit::_notification(int p_what) {
|
||||||
_update_wrap_at();
|
_update_wrap_at();
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_RESIZED: {
|
case NOTIFICATION_RESIZED: {
|
||||||
|
|
||||||
_update_scrollbars();
|
_update_scrollbars();
|
||||||
_update_wrap_at();
|
_update_wrap_at();
|
||||||
} break;
|
} break;
|
||||||
|
case NOTIFICATION_VISIBILITY_CHANGED: {
|
||||||
|
if (is_visible()) {
|
||||||
|
call_deferred("_update_scrollbars");
|
||||||
|
call_deferred("_update_wrap_at");
|
||||||
|
}
|
||||||
|
} break;
|
||||||
case NOTIFICATION_THEME_CHANGED: {
|
case NOTIFICATION_THEME_CHANGED: {
|
||||||
|
|
||||||
_update_caches();
|
_update_caches();
|
||||||
_update_wrap_at();
|
_update_wrap_at();
|
||||||
syntax_highlighting_cache.clear();
|
syntax_highlighting_cache.clear();
|
||||||
|
|
Loading…
Reference in a new issue