mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-25 04:11:42 -04:00
fix CCMenuItemToggler scaling in AxisLayouts
This commit is contained in:
parent
f1f96dee50
commit
8b23be8d81
1 changed files with 3 additions and 3 deletions
|
@ -105,9 +105,9 @@ static AxisPosition nodeAxis(CCNode* node, Axis axis, float scale) {
|
|||
axisLength = opts->getLength();
|
||||
}
|
||||
// CCMenuItemToggler is a common quirky class
|
||||
if (auto toggle = typeinfo_cast<CCMenuItemToggler*>(node)) {
|
||||
scaledSize = toggle->m_offButton->getScaledContentSize();
|
||||
}
|
||||
// if (auto toggle = typeinfo_cast<CCMenuItemToggler*>(node)) {
|
||||
// scaledSize = toggle->m_offButton->getScaledContentSize();
|
||||
// }
|
||||
auto anchor = node->getAnchorPoint();
|
||||
if (axis == Axis::Row) {
|
||||
return AxisPosition {
|
||||
|
|
Loading…
Add table
Reference in a new issue