mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -05:00
fix Popup not adding the title as a child if the popup is not dynamic
This commit is contained in:
parent
85180d5f1c
commit
a694453bfd
1 changed files with 1 additions and 0 deletions
|
@ -137,6 +137,7 @@ namespace geode {
|
||||||
else {
|
else {
|
||||||
auto winSize = cocos2d::CCDirector::get()->getWinSize();
|
auto winSize = cocos2d::CCDirector::get()->getWinSize();
|
||||||
m_title->setPosition(winSize / 2 + ccp(0, m_size.height / 2 - offset));
|
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);
|
m_title->limitLabelWidth(m_size.width - 20.f, scale, .1f);
|
||||||
|
|
Loading…
Reference in a new issue