mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 09:32:41 +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
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user