From 8a433a668db8fb771d91b555649f6db1715d31d7 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Fri, 2 Sep 2016 17:21:34 +0200 Subject: [PATCH] CLuaInstCCWindow::CCWindowNew: use setButtonLabels real footer width Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/c566466ff1330609de5fc651556ca6c25c914513 Author: Michael Liebmann Date: 2016-09-02 (Fri, 02 Sep 2016) --- src/gui/lua/lua_cc_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/lua/lua_cc_window.cpp b/src/gui/lua/lua_cc_window.cpp index 03313ca22..df87bb815 100644 --- a/src/gui/lua/lua_cc_window.cpp +++ b/src/gui/lua/lua_cc_window.cpp @@ -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()); } }