mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Label: update min size when regenerate wordcache
This commit is contained in:
parent
303370d03d
commit
f471afa4a5
2 changed files with 1 additions and 7 deletions
|
@ -36,7 +36,6 @@ void Label::set_autowrap(bool p_autowrap) {
|
|||
|
||||
autowrap = p_autowrap;
|
||||
word_cache_dirty = true;
|
||||
minimum_size_changed();
|
||||
update();
|
||||
}
|
||||
bool Label::has_autowrap() const {
|
||||
|
@ -48,7 +47,6 @@ void Label::set_uppercase(bool p_uppercase) {
|
|||
|
||||
uppercase = p_uppercase;
|
||||
word_cache_dirty = true;
|
||||
minimum_size_changed();
|
||||
update();
|
||||
}
|
||||
bool Label::is_uppercase() const {
|
||||
|
@ -71,7 +69,6 @@ void Label::_notification(int p_what) {
|
|||
xl_text = new_text;
|
||||
|
||||
regenerate_word_cache();
|
||||
minimum_size_changed();
|
||||
update();
|
||||
}
|
||||
|
||||
|
@ -496,6 +493,7 @@ void Label::regenerate_word_cache() {
|
|||
minsize.height = (font->get_height() * line_count) + (line_spacing * (line_count - 1));
|
||||
}
|
||||
|
||||
minimum_size_changed();
|
||||
word_cache_dirty = false;
|
||||
}
|
||||
|
||||
|
@ -533,9 +531,6 @@ void Label::set_text(const String &p_string) {
|
|||
if (percent_visible < 1)
|
||||
visible_chars = get_total_character_count() * percent_visible;
|
||||
update();
|
||||
if (!autowrap) {
|
||||
minimum_size_changed();
|
||||
}
|
||||
}
|
||||
|
||||
void Label::set_clip_text(bool p_clip) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue