mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
* CComponentsItemBox: Correction x-position of elements
This commit is contained in:
@@ -1011,11 +1011,11 @@ void CComponentsItemBox::calPositionOfElements()
|
|||||||
for (i = 0; i < v_element_data.size(); i++) {
|
for (i = 0; i < v_element_data.size(); i++) {
|
||||||
if (firstElementLeft == i){
|
if (firstElementLeft == i){
|
||||||
prevElementLeft = 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){
|
else if (firstElementRight == i){
|
||||||
prevElementRight = 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 {
|
else {
|
||||||
if (v_element_data[i].align == CC_ALIGN_LEFT) {
|
if (v_element_data[i].align == CC_ALIGN_LEFT) {
|
||||||
|
Reference in New Issue
Block a user