mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 12:02:48 +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;
|
end;
|
||||||
|
|
||||||
procedure TAnchorDockSplitter.UpdatePercentPosition;
|
procedure TAnchorDockSplitter.UpdatePercentPosition;
|
||||||
var
|
|
||||||
BR: TRect;
|
|
||||||
begin
|
begin
|
||||||
BR := BoundsRect;
|
|
||||||
case ResizeAnchor of
|
case ResizeAnchor of
|
||||||
akTop, akBottom:
|
akTop, akBottom:
|
||||||
if FDockParentClientSize.cy > 0 then
|
if FDockParentClientSize.cy > 0 then
|
||||||
FPercentPosition := (BR.Top+BR.Bottom) / 2 / FDockParentClientSize.cy;
|
FPercentPosition := Top / FDockParentClientSize.cy;
|
||||||
else
|
else
|
||||||
if FDockParentClientSize.cx > 0 then
|
if FDockParentClientSize.cx > 0 then
|
||||||
FPercentPosition := (BR.Left+BR.Right) / 2 / FDockParentClientSize.cx;
|
FPercentPosition := Left / FDockParentClientSize.cx;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user