Merge pull request #34979 from timothyqiu/label-autowrap

Update minimum size on Label::set_autowrap
This commit is contained in:
Rémi Verschelde 2020-01-10 10:34:24 +01:00 committed by GitHub
commit c51c7eb5bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -35,9 +35,17 @@
void Label::set_autowrap(bool p_autowrap) { void Label::set_autowrap(bool p_autowrap) {
if (autowrap == p_autowrap) {
return;
}
autowrap = p_autowrap; autowrap = p_autowrap;
word_cache_dirty = true; word_cache_dirty = true;
update(); update();
if (clip) {
minimum_size_changed();
}
} }
bool Label::has_autowrap() const { bool Label::has_autowrap() const {