- Slot &prev = *slots.back();
- slot->constraints.push_back(Constraint(BELOW, prev));
- slot->constraints.push_back(Constraint(ALIGN_LEFT, prev));
- slot->constraints.push_back(Constraint(ALIGN_RIGHT, prev));
- if(uniform)
- slot->constraints.push_back(Constraint(COPY_HEIGHT, prev));
+ bool snug = (edges[BOTTOM].aligned && aligned && !split_here);
+ add_constraint(wdg, (snug ? Layout::BELOW : Layout::FAR_BELOW), BOTTOM);
+ if(first)
+ edges[TOP].add(wdg, aligned);