mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 00:22:51 +02:00
Anchordocking: Calculate docksite coordinates right after undocking. Issue #23596, patch from B4Z1l3
git-svn-id: trunk@40931 -
This commit is contained in:
parent
beb92d26d8
commit
3e1080ac8f
@ -4190,9 +4190,10 @@ var
|
||||
begin
|
||||
if Parent=nil then exit;
|
||||
DisableAutoSizing;
|
||||
p:=ClientOrigin;
|
||||
p := Point(0,0);
|
||||
p := ClientToScreen(p);
|
||||
Parent:=nil;
|
||||
SetBounds(Left+p.x,Top+p.y,Width,Height);
|
||||
SetBounds(p.x,p.y,Width,Height);
|
||||
EnableAutoSizing;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user