fix MDPopup height estimations having way too high of an upper bound

This commit is contained in:
HJfod 2024-02-12 18:06:12 +02:00
parent da215d3ea0
commit cc4c32e12f

View file

@ -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(