mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
fix MDPopup height estimations having way too high of an upper bound
This commit is contained in:
parent
da215d3ea0
commit
cc4c32e12f
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ void MDPopup::onBtn(CCObject* sender) {
|
|||
}
|
||||
|
||||
float MDPopup::estimateHeight(std::string const& content) {
|
||||
return clamp(string::count(content, '\n') * 30.f, 200.f, 360.f);
|
||||
return clamp(string::count(content, '\n') * 30.f, 200.f, 280.f);
|
||||
}
|
||||
|
||||
MDPopup* MDPopup::create(
|
||||
|
|
Loading…
Reference in a new issue