src/gui/lua/lua_cc_window.cpp use setButtonLabels real window width

This commit is contained in:
Jacek Jendrzej
2016-08-22 20:59:06 +02:00
parent c990411575
commit 52d16769f1

View File

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