Fixed: checkCoords needs XReal to be same as in updateCoords

--HG--
branch : develop
This commit is contained in:
Nimetu 2018-09-27 21:42:31 +03:00
parent c2ffa714d2
commit 8ef8b2d62d

View file

@ -1407,6 +1407,9 @@ namespace NLGUI
// ------------------------------------------------------------------------------------------------
void CInterfaceGroup::checkCoords()
{
// Make XReal same as in updateCoords() as some elements (CViewText) depends on it
_XReal += _MarginLeft;
//update all children elements
vector<CViewBase*>::const_iterator ite;
for (ite = _EltOrder.begin() ; ite != _EltOrder.end(); ite++)
@ -1415,6 +1418,8 @@ namespace NLGUI
if(pIE->getActive())
pIE->checkCoords();
}
_XReal -= _MarginLeft;
executeLuaScriptOnDraw();
}