This commit is contained in:
HJfod 2024-09-10 22:21:12 +03:00
parent 67814ece83
commit 93ed3910c3

View file

@ -823,13 +823,14 @@ CCSize AxisLayout::getSizeHint(CCNode* on) const {
axis.crossLength = cross; axis.crossLength = cross;
} }
} }
if (auto l = m_impl->m_autoGrowAxisMinLength) { // this broke customkeybinds...
length = std::max(length, *l); // if (auto l = m_impl->m_autoGrowAxisMinLength) {
} // length = std::max(length, *l);
// No overflow // }
else { // // No overflow
length = std::min(length, nodeAxis(on, m_impl->m_axis, 1.f).axisLength); // else {
} // length = std::min(length, nodeAxis(on, m_impl->m_axis, 1.f).axisLength);
// }
if (!m_impl->m_allowCrossAxisOverflow) { if (!m_impl->m_allowCrossAxisOverflow) {
cross = nodeAxis(on, m_impl->m_axis, 1.f).crossLength; cross = nodeAxis(on, m_impl->m_axis, 1.f).crossLength;
} }