void CategorizedList::Category::layoutChildren() { FontPtr font = parent.GetFont(); float pos = font ? font->getLineSpacing() : 0.f; std::vector<window_ptr>::iterator i = children.begin(); std::vector<window_ptr>::iterator end = children.end(); while(i != end) { window_ptr child = *i; child->setPosition(point(area.m_left, area.m_top + pos)); pos += child->getArea().getHeight(); ++i; } }