- if (a->_resize(a)) {
- // if 'size' changed then 'resize = 1' on childs with SIZE_BY_LAYOUT
- a->on_changed = 1;
- for (l = a->list; l ; l = l->next) {
- if (((Area*)l->data)->size_mode == SIZE_BY_LAYOUT)
- ((Area*)l->data)->resize = 1;
- }
+ a->_resize(a);
+ // resize childs with SIZE_BY_LAYOUT
+ for (l = a->list; l ; l = l->next) {
+ Area *child = ((Area*)l->data);
+ if (child->size_mode == SIZE_BY_LAYOUT && child->list)
+ child->resize = 1;