LCL: TTreeView: anchor editor control, prevent autosizing

git-svn-id: trunk@18379 -
This commit is contained in:
mattias 2009-01-21 17:39:35 +00:00
parent 587cb449f6
commit fe70d4aaf8

View File

@ -2886,6 +2886,8 @@ begin
ARect:=Rect(Max(BorderWidth,Node.DisplayTextLeft),Node.Top-ScrolledTop,
ClientWidth-BorderWidth,Node.Bottom-ScrolledTop);
FEditor.BoundsRect:=ARect;
FEditor.AnchorParallel(akLeft,BorderWidth,Self);
FEditor.AnchorParallel(akRight,BorderWidth,Self);
FEditor.Visible:=true;
FEditor.Parent:=Self;
FEditor.Text:=Node.Text;