CComponentsItem: fix possible issues with position inside forms

This ensures relative position for items inside form


Origin commit data
------------------
Commit: a19a1f067e
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-08-03 (Thu, 03 Aug 2017)
This commit is contained in:
2017-08-03 17:34:37 +02:00
parent 4c394be564
commit c92ffd7841

View File

@@ -265,14 +265,14 @@ void CComponentsItem::setXPos(const int& xpos)
{
CCDraw::setXPos(xpos);
if (cc_parent)
cc_xr = cc_parent->getXPos() + x;
cc_xr = cc_parent->getRealXPos() + x;
}
void CComponentsItem::setYPos(const int& ypos)
{
CCDraw::setYPos(ypos);
if (cc_parent)
cc_yr = cc_parent->getYPos() + y;
cc_yr = cc_parent->getRealYPos() + y;
}
void CComponentsItem::setXPosP(const uint8_t& xpos_percent)