mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-02 00:32:30 +02:00
LCL: constraint Width,Height to >=0
git-svn-id: trunk@36885 -
This commit is contained in:
parent
080f4f8c22
commit
a28add96c2
@ -1328,6 +1328,8 @@ procedure TControl.DoConstrainedResize(var NewLeft, NewTop,
|
||||
var
|
||||
MinWidth, MinHeight, MaxWidth, MaxHeight : TConstraintSize;
|
||||
begin
|
||||
if NewWidth<0 then NewWidth:=0;
|
||||
if NewHeight<0 then NewHeight:=0;
|
||||
MinWidth := Constraints.EffectiveMinWidth;
|
||||
MinHeight := Constraints.EffectiveMinHeight;
|
||||
MaxWidth := Constraints.EffectiveMaxWidth;
|
||||
|
Loading…
Reference in New Issue
Block a user