fix Popup not adding the title as a child if the popup is not dynamic

This commit is contained in:
HJfod 2024-02-03 12:31:18 +02:00
parent 85180d5f1c
commit a694453bfd

View file

@ -137,6 +137,7 @@ namespace geode {
else {
auto winSize = cocos2d::CCDirector::get()->getWinSize();
m_title->setPosition(winSize / 2 + ccp(0, m_size.height / 2 - offset));
m_mainLayer->addChild(m_title);
}
}
m_title->limitLabelWidth(m_size.width - 20.f, scale, .1f);