PiRSquared17 / j4me

Automatically exported from code.google.com/p/j4me
0 stars 0 forks source link

Label component preffered size is wrong #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Under certains circumstances, a Label could be break into several lines,
while it has been sized enough to get all text on a single line (by using
getPreferredSize)

This may occures because the horizontal margin used in the breakIntoLines
method  is not included in the preffered size calculation. 

please, find enclosed a fix proposal.

Cheers
Jean-marie

Original issue reported on code.google.com by jmherme...@gmail.com on 13 Feb 2008 at 9:41

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by deanbro...@gmail.com on 26 Feb 2008 at 1:29