TIWLabel AutoSize not working when aligned top

<< Click to Display Table of Contents >>

Navigation:  Forum >

TIWLabel AutoSize not working when aligned top

Forum link

 


 

06-20-2023, 11:31 AM:

 

Hello!

 

If I set the Align property of aTIWLabel to alNone the control resizes nicely depending on Font and text biggrin 

 

But If I set Align to alTop the height of the control does not adjust!?

 

Best regads, Mikael

 


 

06-25-2023, 12:03 AM:

 

If you set Align to anything other than alNone, the size of the control (not only IWLabel) will be determined by the outer container, not the size of the text. This is by design and it is in accordance with other VCL controls with similar features.

 

The IWLabel adjusts its width but not the height when the text doesn't fit the available area.