mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 09:09:29 +02:00
Designer: Fixed wrong coordinated when getting a non-WinControl parent for a new component. Issue #19891
git-svn-id: trunk@31862 -
This commit is contained in:
parent
f9aff65013
commit
63be6b3a21
@ -1917,7 +1917,7 @@ var
|
||||
if MouseDownComponent is TWinControl then
|
||||
NewParentControl := TWinControl(MouseDownComponent)
|
||||
else
|
||||
NewParentControl := WinControlAtPos(MouseDownPos.X, MouseUpPos.X, true, true);
|
||||
NewParentControl := WinControlAtPos(MouseUpPos.X, MouseUpPos.Y, true, true);
|
||||
|
||||
while (NewParentControl <> nil) and
|
||||
((not (csAcceptsControls in NewParentControl.ControlStyle)) or
|
||||
|
Loading…
Reference in New Issue
Block a user