Atozed Forums

Full Version: TIWLabel AutoSize not working when aligned top
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

If I set the Align property of aTIWLabel to alNone the control resizes nicely depending on Font and text [Image: biggrin.png] 

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

Best regads, Mikael
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.