From 1e738d86c55a4e67fb03b0cc13b860716783eb18 Mon Sep 17 00:00:00 2001 From: mattias Date: Wed, 17 Oct 2007 10:34:37 +0000 Subject: [PATCH] LCL: DoAutoSize no longer tries to move childs positioned by CHildSizing.Layout git-svn-id: trunk@12503 - --- lcl/include/wincontrol.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lcl/include/wincontrol.inc b/lcl/include/wincontrol.inc index 07228c8329..8e61692b62 100644 --- a/lcl/include/wincontrol.inc +++ b/lcl/include/wincontrol.inc @@ -2730,7 +2730,7 @@ var if Parent=nil then Result:=false else - Result:=Parent.ChildSizing.Layout<>cclNone; + Result:=(Parent.ChildSizing.Layout<>cclNone); end; function HeightAnchored(CurAnchors: TAnchors): boolean; @@ -2768,6 +2768,11 @@ var MinSpaceLeft: LongInt; MinSpaceTop: LongInt; begin + if ChildSizing.Layout<>cclNone then begin + dx:=0; + dy:=0; + exit; + end; dx:=High(integer); dy:=High(integer); MinSpaceLeft:=ChildSizing.LeftRightSpacing;