CLuaInstCCWindow::CCWindowNew: use setButtonLabels real footer width

This commit is contained in:
M. Liebmann
2016-09-02 17:21:34 +02:00
parent 8d014c6f76
commit c566466ff1

View File

@@ -161,7 +161,7 @@ int CLuaInstCCWindow::CCWindowNew(lua_State *L)
buttons.push_back(btnSblue); buttons.push_back(btnSblue);
} }
if (!buttons.empty()) if (!buttons.empty())
footer->setButtonLabels(buttons, (*udata)->w->getWidth()-20, ((*udata)->w->getWidth()-20) / (buttons.size()+1)); footer->setButtonLabels(buttons, footer->getWidth(), footer->getWidth() / buttons.size());
} }
} }