ignore hidden widget in vertical layout
This commit is contained in:
parent
f3b3ecada1
commit
e74bca2c3a
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue