mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-05 19:46:01 +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
|
begin
|
||||||
if Parent=nil then exit;
|
if Parent=nil then exit;
|
||||||
DisableAutoSizing;
|
DisableAutoSizing;
|
||||||
p:=ClientOrigin;
|
p := Point(0,0);
|
||||||
|
p := ClientToScreen(p);
|
||||||
Parent:=nil;
|
Parent:=nil;
|
||||||
SetBounds(Left+p.x,Top+p.y,Width,Height);
|
SetBounds(p.x,p.y,Width,Height);
|
||||||
EnableAutoSizing;
|
EnableAutoSizing;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user