mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-15 12:19:13 +02:00
LCL: constraints min size is 0
git-svn-id: trunk@12640 -
This commit is contained in:
parent
10a44b7cd4
commit
9436edc31c
@ -137,7 +137,7 @@ var
|
||||
begin
|
||||
Result:=Width;
|
||||
MinW:=EffectiveMinWidth;
|
||||
if (MinW>0) and (Result<MinW) then Result:=MinW;
|
||||
if (Result<MinW) then Result:=MinW;
|
||||
MaxW:=EffectiveMaxWidth;
|
||||
if (MaxW>0) and (Result>MaxW) then Result:=MaxW;
|
||||
end;
|
||||
@ -149,7 +149,7 @@ var
|
||||
begin
|
||||
Result:=Height;
|
||||
MinH:=EffectiveMinHeight;
|
||||
if (MinH>0) and (Result<MinH) then Result:=MinH;
|
||||
if (Result<MinH) then Result:=MinH;
|
||||
MaxH:=EffectiveMaxHeight;
|
||||
if (MaxH>0) and (Result>MaxH) then Result:=MaxH;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user