Skip to content

Commit

Permalink
nvm alk fixed ck
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Sep 10, 2024
1 parent 65a80c1 commit 91a5509
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions loader/src/cocos2d-ext/AxisLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 91a5509

Please sign in to comment.