CComponentsForm: don't consider frame for position calculation

This should be done in the arrangement of the container contents


Origin commit data
------------------
Commit: dce25e94b3
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-22 (Sun, 22 Jun 2014)
This commit is contained in:
2014-06-22 23:33:10 +02:00
committed by vanhofen
parent d43338ee5b
commit d79bd7d5ab

View File

@@ -276,7 +276,7 @@ void CComponentsForm::paintCCItems()
}
//positionize vertical centered
else if (xpos == CC_CENTERED){
auto_x = width/2 - w_item/2 +fr_thickness;
auto_x = width/2 - w_item/2;
cc_item->setRealXPos(this_x + auto_x);
}
else{
@@ -293,7 +293,7 @@ void CComponentsForm::paintCCItems()
}
//positionize hor centered
else if (ypos == CC_CENTERED){
auto_y = height/2 - h_item/2 +fr_thickness;
auto_y = height/2 - h_item/2;
cc_item->setRealYPos(this_y + auto_y);
}
else{