mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 05:19:25 +02:00
gtk intf: set min constraints for controls to 1x1
git-svn-id: trunk@12676 -
This commit is contained in:
parent
6b5f9e4f97
commit
7a6eecdba3
@ -2577,6 +2577,12 @@ var
|
||||
'');
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
// apply the constraints
|
||||
NewWidth:=ConstraintWidth(NewWidth);
|
||||
NewHeight:=ConstraintHeight(NewHeight);
|
||||
NewRight:=NewLeft+NewWidth;
|
||||
NewBottom:=NewTop+NewHeight;
|
||||
|
||||
// set the new bounds
|
||||
if (Control.Left <> NewLeft) or (Control.Top <> NewTop)
|
||||
|
@ -564,8 +564,8 @@ var
|
||||
begin
|
||||
Result:=true;
|
||||
if Constraints is TSizeConstraints then begin
|
||||
MinWidth := 0;
|
||||
MinHeight := 0;
|
||||
MinWidth := 1;
|
||||
MinHeight := 1;
|
||||
MaxWidth:=0;
|
||||
MaxHeight:=0;
|
||||
SizeConstraints:=TSizeConstraints(Constraints);
|
||||
|
Loading…
Reference in New Issue
Block a user