From dce25e94b31c3dbc260a4257079150cfb0c589a6 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 22 Jun 2014 23:33:10 +0200 Subject: [PATCH] CComponentsForm: don't consider frame for position calculation This should be done in the arrangement of the container contents --- src/gui/components/cc_frm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/components/cc_frm.cpp b/src/gui/components/cc_frm.cpp index ed86f7c62..2fe9b7b12 100644 --- a/src/gui/components/cc_frm.cpp +++ b/src/gui/components/cc_frm.cpp @@ -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{