mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 04:19:19 +02:00
Merged revision(s) 51124 #14cc0fc3b7 from trunk:
anchordocking: fix wrong PercentValue from r51099 #47649a5b56 ........ git-svn-id: branches/fixes_1_6@51153 -
This commit is contained in:
parent
5fb41b86ea
commit
279e5674cd
@ -6065,17 +6065,14 @@ begin
|
||||
end;
|
||||
|
||||
procedure TAnchorDockSplitter.UpdatePercentPosition;
|
||||
var
|
||||
BR: TRect;
|
||||
begin
|
||||
BR := BoundsRect;
|
||||
case ResizeAnchor of
|
||||
akTop, akBottom:
|
||||
if FDockParentClientSize.cy > 0 then
|
||||
FPercentPosition := (BR.Top+BR.Bottom) / 2 / FDockParentClientSize.cy;
|
||||
FPercentPosition := Top / FDockParentClientSize.cy;
|
||||
else
|
||||
if FDockParentClientSize.cx > 0 then
|
||||
FPercentPosition := (BR.Left+BR.Right) / 2 / FDockParentClientSize.cx;
|
||||
FPercentPosition := Left / FDockParentClientSize.cx;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user