From 864c0e84de9c2a2c5a030ec4ee167f3793e1e962 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 9 Jul 2016 14:54:44 -0300 Subject: line/col label was changing size with each cursor move, forcing the GUI to resize upwards and costing considerably CPU usage. It has been changed so it won't resize the UI when modified. This will make the code editor feel a lot smoother. --- scene/gui/label.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scene/gui/label.cpp') diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp index 778d24cc35..0431d824fa 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -535,7 +535,9 @@ void Label::set_text(const String& p_string) { if (percent_visible<1) visible_chars=get_total_character_count()*percent_visible; update(); - minimum_size_changed(); + if (!autowrap) { + minimum_size_changed(); + } } -- cgit v1.2.3