IDE: Fixed ShowForm, broken in rev 44801 #a37ff8d09e

git-svn-id: trunk@45010 -
This commit is contained in:
martin 2014-05-11 17:51:42 +00:00
parent 2515a4ee6a
commit 7e8693d62e

View File

@ -1648,7 +1648,9 @@ begin
( (AMoveToVisbleMode = vmOnlyMoveOffScreenToVisible) and
(not IsAnyCornerVisible(AForm)) )
then
AForm.EnsureVisible(true);
AForm.EnsureVisible(true)
else
AForm.ShowOnTop;
if (csDesigning in AForm.ComponentState) and (AForm.Designer <> nil) then
AForm.Visible := ARestoreVisible;
@ -1669,7 +1671,9 @@ begin
( (AMoveToVisbleMode = vmOnlyMoveOffScreenToVisible) and
(not IsAnyCornerVisible(AForm)) )
then
AForm.EnsureVisible(true);
AForm.EnsureVisible(true)
else
AForm.ShowOnTop;
end;
end;