ignore hidden widget in vertical layout

This commit is contained in:
Eduardo Bart 2011-11-14 06:13:48 -02:00
parent f3b3ecada1
commit e74bca2c3a
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ void UIVerticalLayout::update()
Point pos = (m_alignBottom) ? parentWidget->getRect().bottomLeft() : parentWidget->getPosition();
for(const UIWidgetPtr& widget : widgets) {
if(!widget->isExplicitlyVisible())
continue;
Size size = widget->getSize();
pos.y += (m_alignBottom) ? -(widget->getMarginBottom()+widget->getHeight()) : widget->getMarginTop();
if(widget->isSizeFixed()) {