mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
CComponentsForm: fix centering of items inside form
This commit is contained in:
@@ -276,7 +276,7 @@ void CComponentsForm::paintCCItems()
|
|||||||
}
|
}
|
||||||
//positionize vertical centered
|
//positionize vertical centered
|
||||||
else if (xpos == CC_CENTERED){
|
else if (xpos == CC_CENTERED){
|
||||||
auto_x = width/2 - w_item/2;
|
auto_x = width/2 - w_item/2 +fr_thickness;
|
||||||
cc_item->setRealXPos(this_x + auto_x);
|
cc_item->setRealXPos(this_x + auto_x);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@@ -293,7 +293,7 @@ void CComponentsForm::paintCCItems()
|
|||||||
}
|
}
|
||||||
//positionize hor centered
|
//positionize hor centered
|
||||||
else if (ypos == CC_CENTERED){
|
else if (ypos == CC_CENTERED){
|
||||||
auto_y = height/2 - h_item/2;
|
auto_y = height/2 - h_item/2 +fr_thickness;
|
||||||
cc_item->setRealYPos(this_y + auto_y);
|
cc_item->setRealYPos(this_y + auto_y);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
Reference in New Issue
Block a user