mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-03 20:51:02 -05:00
Fix #926
This commit is contained in:
parent
1b9a10776d
commit
b8d29a8aa2
1 changed files with 5 additions and 2 deletions
|
@ -775,7 +775,6 @@ void AxisLayout::apply(CCNode* on) {
|
|||
}
|
||||
if (first) {
|
||||
minMaxPrio = { prio, prio };
|
||||
first = false;
|
||||
}
|
||||
else {
|
||||
if (prio < minMaxPrio.first) {
|
||||
|
@ -786,9 +785,13 @@ void AxisLayout::apply(CCNode* on) {
|
|||
}
|
||||
}
|
||||
if (m_impl->m_autoGrowAxisMinLength.has_value()) {
|
||||
totalLength += nodeAxis(node, m_impl->m_axis, 1.f).axisLength + m_impl->nextGap(prev, opts);
|
||||
totalLength += nodeAxis(node, m_impl->m_axis, 1.f).axisLength;
|
||||
if (!first) {
|
||||
totalLength += m_impl->nextGap(prev, opts);
|
||||
}
|
||||
prev = opts;
|
||||
}
|
||||
first = false;
|
||||
}
|
||||
|
||||
if (m_impl->m_autoGrowAxisMinLength.has_value()) {
|
||||
|
|
Loading…
Reference in a new issue