Merge pull request #34979 from timothyqiu/label-autowrap
Update minimum size on Label::set_autowrap
This commit is contained in:
commit
c51c7eb5bd
|
@ -35,9 +35,17 @@
|
|||
|
||||
void Label::set_autowrap(bool p_autowrap) {
|
||||
|
||||
if (autowrap == p_autowrap) {
|
||||
return;
|
||||
}
|
||||
|
||||
autowrap = p_autowrap;
|
||||
word_cache_dirty = true;
|
||||
update();
|
||||
|
||||
if (clip) {
|
||||
minimum_size_changed();
|
||||
}
|
||||
}
|
||||
bool Label::has_autowrap() const {
|
||||
|
||||
|
|
Loading…
Reference in New Issue