TLabel autosize
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
Now labels always shrink/grow horizontally if autosize is set to true.
However, a few revisions ago they used to grow vertically if wordwrap was also enabled.
This change breaks all complex layouts
Steps to reproduce:
Put a label on the form with +wordwrap+autosize on the form,
e.g this one:
object lblWarning: TLabel
AnchorSideTop.Control = Label2
AnchorSideTop.Side = asrBottom
Left = 226
Height = 204
Top = 100
Width = 225
Anchors = [akTop, akRight]
BorderSpacing.Top = 13
Caption = 'Achtung: '#13#10'Die Bücherei erlaubt nur wenige Verlängerungen pro Medium. Bei der Option "immer, wenn möglich" werden daher, nach kurzer Zeit, keinerlei Verlängerungen mehr erlaubt sein.'
Font.Style = [fsBold]
ParentColor = False
ParentFont = False
Visible = False
WordWrap = True
end
Additional information:
Your example Label is not fixed in Width, so the AutoSize uses only one line. This is by design.
Mantis conversion info:
- Mantis ID: 18505
- OS: debian
- OS Build: squeeze
- Build: 29013
- Platform: amd64
- Version: 0.9.31 (SVN)
- Monitored by: » luizamerico (Luiz Americo)