Setting Contraints-Value has no effect
Original Reporter info from Mantis: TBug
-
Reporter name:
Original Reporter info from Mantis: TBug
- Reporter name:
Description:
Setting Contraints.MaxHeight to a value smaller then Height dosn't set the Height of the Component to the Contraints.MaxHeight.
Setting Contraints.MaxWidth to a value smaller then Width dosn't set the Width of the Component to the Contraints.MaxWidth.
Setting Contraints.MinHeight to a value higher then Height dosn't set the Height of the Component to the Contraints.MinHeight.
Setting Contraints.MinWidth to a value higherthen Width dosn't set the Width of the Component to the Contraints.MinWidth.
The issue appears at design- and runtime.
Steps to reproduce:
Create a new application and put a TMemo on it.
Use OI to set e.g. the Contraints.MaxHeight to 20.
The TMemo doesn't decrease it's Height to the MaxHeight-Value.
Same behaviour while setting any Constraints-Value during Runtime by:
Memo1.Height := 200;
Memo1.Constaints.MaxHeight := 100;
The Memo1 still has a height of 200.