mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-19 17:39:50 -04:00
fix spacers being scaled down in layouts
This commit is contained in:
parent
dce50ca4df
commit
be048d41b9
1 changed files with 2 additions and 1 deletions
|
@ -646,7 +646,8 @@ public:
|
|||
for (auto& node : CCArrayExt<CCNode*>(row->nodes)) {
|
||||
auto opts = axisOpts(node);
|
||||
// rescale node if overflowing
|
||||
if (this->shouldAutoScale(opts)) {
|
||||
// do not scale spacers since that screws up their content size
|
||||
if (this->shouldAutoScale(opts) && !typeinfo_cast<SpacerNode*>(node)) {
|
||||
auto nodeScale = scaleByOpts(opts, row->scale, row->prio, false, m_defaultScaleLimits.first, m_defaultScaleLimits.second);
|
||||
// CCMenuItemSpriteExtra is quirky af
|
||||
if (auto btn = typeinfo_cast<CCMenuItemSpriteExtra*>(node)) {
|
||||
|
|
Loading…
Reference in a new issue