CLuaInstCCWindow::CCWindowNew: use setButtonLabels real footer width

Origin commit data
------------------
Commit: c566466ff1
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-02 (Fri, 02 Sep 2016)
This commit is contained in:
Michael Liebmann
2016-09-02 17:21:34 +02:00
parent 53f05e6a73
commit 8a433a668d

View File

@@ -161,7 +161,7 @@ int CLuaInstCCWindow::CCWindowNew(lua_State *L)
buttons.push_back(btnSblue);
}
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());
}
}