nvm alk fixed ck

This commit is contained in:
HJfod 2024-09-10 22:23:58 +03:00
parent 65a80c1057
commit 91a550971b

View file

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