- Slot &prev = *slots.back();
- if(first)
- slot->constraints.push_back(Constraint(BELOW, prev));
- else
- {
- slot->constraints.push_back(Constraint(ALIGN_TOP, prev));
- slot->constraints.push_back(Constraint(ALIGN_BOTTOM, prev));
- if(!skipped)
- slot->constraints.push_back(Constraint(RIGHT_OF, prev));
- }
+ if(row_bottom.aligned && aligned)
+ add_constraint(wdg, Layout::ALIGN_BOTTOM, row_bottom);