Height and width of TLabel become one in intel Mac
Original Reporter info from Mantis: TheCreativeCAT
-
Reporter name:
Original Reporter info from Mantis: TheCreativeCAT
- Reporter name:
Description:
Some TLabels defined in the Lazarus for PPC Mac disappear in the Lazarus for intel Mac because their height and width are forced to 1.
Additional information:
This fault occurs when a TLabel has both
- non-default font and/or size properties
- Autosize Property : True (default).
I wrote a sample project under a PPC mac. Please download the attached file, LabelSizeTest.zip, which contains a project and two screenshots. As you can see in PPC.tiff, the project has five TLabels on Form1 with following properties, from top to bottom:
(1) default font, default size, autosize = true
(2) default font, size = 20, autosize = true
(3) font = Areal, default size, autosize = true
(4) font = Areal, size = 20, autosize = true
(5) font = Areal, size = 20, autosize = false
However, when loaded in an intel Mac, the third and fourth label disappear (i386.tiff). The width and height properties of both labels are fixed to 1 and never been changed. This is bothering even there is a simple workaround: use default font/size or turn off autosize.
The SVN for PPC Lazarus is 29691, running under Mac OS X 10.5.8 and intel Lazarus has a SVN version of 29672, running under Mac OS X 10.6.6.
Mantis conversion info:
- Mantis ID: 18839
- Version: 0.9.31 (SVN)