LCL: fixed center anchoring

git-svn-id: trunk@25516 -
This commit is contained in:
mattias 2010-05-19 15:14:22 +00:00
parent 75cd574d96
commit 5ebecf8cf5

View File

@ -3587,7 +3587,7 @@ begin
if Kind in [akLeft,akRight] then begin
// center horizontally
if ReferenceControl=OwnerParent then
Position:=GetParentSidePos(akRight)-GetParentSidePos(akLeft)
Position:=(GetParentSidePos(akRight)+GetParentSidePos(akLeft)) div 2
else
Position:=ReferenceControl.Left+(ReferenceControl.Width div 2);
if Kind=akLeft then