Skip to content

Commit

Permalink
fix: spacing for align bottom vertical layouts (mehah#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiro authored Oct 7, 2024
1 parent 205e80b commit 9d8fb29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/ui/uiverticallayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ bool UIVerticalLayout::internalUpdate()
changed = true;

gap = (m_alignBottom) ? -widget->getMarginTop() : (widget->getHeight() + widget->getMarginBottom());
gap += m_spacing;
gap += m_alignBottom ? -m_spacing : m_spacing;
pos.y += gap;
preferredHeight += gap;
};
Expand All @@ -99,4 +99,4 @@ bool UIVerticalLayout::internalUpdate()
}

return changed;
}
}

0 comments on commit 9d8fb29

Please sign in to comment.