mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 07:55:59 +02:00
LCL: fixed center anchoring
git-svn-id: trunk@25516 -
This commit is contained in:
parent
75cd574d96
commit
5ebecf8cf5
@ -3587,7 +3587,7 @@ begin
|
|||||||
if Kind in [akLeft,akRight] then begin
|
if Kind in [akLeft,akRight] then begin
|
||||||
// center horizontally
|
// center horizontally
|
||||||
if ReferenceControl=OwnerParent then
|
if ReferenceControl=OwnerParent then
|
||||||
Position:=GetParentSidePos(akRight)-GetParentSidePos(akLeft)
|
Position:=(GetParentSidePos(akRight)+GetParentSidePos(akLeft)) div 2
|
||||||
else
|
else
|
||||||
Position:=ReferenceControl.Left+(ReferenceControl.Width div 2);
|
Position:=ReferenceControl.Left+(ReferenceControl.Width div 2);
|
||||||
if Kind=akLeft then
|
if Kind=akLeft then
|
||||||
|
Loading…
Reference in New Issue
Block a user