You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix bug in GridContainer not updating minimumsize when columns changes, fixes #4677
This commit is contained in:
@@ -2266,7 +2266,7 @@ void Control::_ref_font( Ref<Font> p_sc) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Control::_unref_font(Ref<Font> p_sc) {
|
void Control::_unref_font(Ref<Font> p_sc) {
|
||||||
|
|
||||||
ERR_FAIL_COND(!data.font_refcount.has(p_sc));
|
ERR_FAIL_COND(!data.font_refcount.has(p_sc));
|
||||||
data.font_refcount[p_sc]--;
|
data.font_refcount[p_sc]--;
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ void GridContainer::set_columns(int p_columns) {
|
|||||||
|
|
||||||
columns=p_columns;
|
columns=p_columns;
|
||||||
queue_sort();
|
queue_sort();
|
||||||
|
minimum_size_changed();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user