diff --git a/es-core/src/guis/GuiMsgBox.cpp b/es-core/src/guis/GuiMsgBox.cpp index c8e9cd909..37d8bdcbc 100644 --- a/es-core/src/guis/GuiMsgBox.cpp +++ b/es-core/src/guis/GuiMsgBox.cpp @@ -122,7 +122,7 @@ void GuiMsgBox::changeText(const std::string& newText) width = std::max(mButtonGrid->getSize().x, mMsg->getSize().x); width = std::max(width, minWidth); } - else { + else if (mButtonGrid->getSize().x > width) { width = mButtonGrid->getSize().x; }