added Giuliano Colla to contributors

git-svn-id: trunk@9253 -
This commit is contained in:
mattias 2006-05-08 10:32:45 +00:00
parent e9aefb922b
commit 6d45de5a54
3 changed files with 9 additions and 4 deletions

View File

@ -24,6 +24,7 @@ Evgen A. Palamarchuck
Felipe Monteiro de Carvalho
Florian Koeberle
Francisco Manuel
Giuliano Colla
GongYu
Hans-Joachim Ott
Hwang Weng Sun

View File

@ -2513,9 +2513,10 @@ begin
FAlign := Value;
// if anchors were on default then change them to new default
// This is done for Delphi compatibility.
if Anchors=AnchorAlign[OldAlign] then
Anchors:=AnchorAlign[FAlign];
RequestAlign;
if (Anchors=AnchorAlign[OldAlign]) and (Anchors<>AnchorAlign[FAlign]) then
Anchors:=AnchorAlign[FAlign]
else
RequestAlign;
end;
{------------------------------------------------------------------------------

View File

@ -1507,9 +1507,12 @@ var
Result := False;
case AAlign of
alTop: Result := Control1.Top < Control2.Top;
alLeft: Result := Control1.Left < Control2.Left;
// contrary to VCL, we use > for alBottom, alRight
// Maybe it is a bug in the VCL.
// This results in first control is put rightmost/bottommost
alBottom: Result := (Control1.Top + Control1.Height)
> (Control2.Top + Control2.Height);
alLeft: Result := Control1.Left < Control2.Left;
alRight: Result := (Control1.Left + Control1.Width)
> (Control2.Left + Control2.Width);
end;