CComponentsItemBox: Correction x-position of elements

Origin commit data
------------------
Branch: ni/coolstream
Commit: 88e2cb77c2
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-08-27 (Mon, 27 Aug 2012)

Origin message was:
------------------
* CComponentsItemBox: Correction x-position of elements

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2012-08-27 17:35:27 +02:00
committed by Thilo Graf
parent 66e21b7ccf
commit 8e210f68c4

View File

@@ -1011,11 +1011,11 @@ void CComponentsItemBox::calPositionOfElements()
for (i = 0; i < v_element_data.size(); i++) {
if (firstElementLeft == i){
prevElementLeft = i;
v_element_data[i].x += hOffset + corner_rad/2;
v_element_data[i].x = x + hOffset + corner_rad/2;
}
else if (firstElementRight == i){
prevElementRight = i;
v_element_data[i].x += width - v_element_data[i].width - hOffset - corner_rad/2;
v_element_data[i].x = x + width - v_element_data[i].width - hOffset - corner_rad/2;
}
else {
if (v_element_data[i].align == CC_ALIGN_LEFT) {