Fix children's parent_maximum_size_cache unable to update twice in a frame
(cherry picked from commit c9ccf1cea9622179d66230d852f2a0bdca512ec7)
This commit is contained in:
1 parent
1236f8b8f8
commit
1cceea9048
1 file changed
+1
-1
@@ -1742,7 +1742,7 @@ void Control::update_maximum_size() {
|
||||
|
||||
for (Node *child : iterate_children()) {
|
||||
Control *child_control = Object::cast_to<Control>(child);
|
||||
if (child_control && !child_control->is_set_as_top_level() && child_control->data.maximum_size_valid) {
|
||||
if (child_control && !child_control->is_set_as_top_level()) {
|
||||
if (child_control->data.parent_maximum_size_cache == parent_max) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user