Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWLabel AutoSize not working when aligned top
Big Grin 

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.

Forum Jump:

Users browsing this thread: 1 Guest(s)