deanbrowne / j4me

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

CheckBox paintComponent #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. append 2 checkboxes with a strings that can't fit on the same line

What is the expected output? What do you see instead?
The first checkbox label draws under the title bar and the second one 
draws under the first title. 

What I see instead:
The first checkbox label overlaps with the title bar and the second 
checkbox label overlaps with the first checkbox label.

What version of the product are you using? On what operating system?
Latest. Blackberry

Please provide any additional information below.

The problem occurs within checkbox -> paintComponent
Problem occurs if : 
int lx = (int)( checkboxSide * 1.5 );
int lw = width-lx;

If I change this code to :
int lx (int)( checkboxSide * 1.5);
int lw = width

It starts working just fine, but I think this will cause problems in the 
long run.

Original issue reported on code.google.com by juliocas...@gmail.com on 25 Jan 2010 at 3:45

GoogleCodeExporter commented 9 years ago
I mean that this "workaround" will probably cause problems in the end. What 
would be 
a valid fix?

Original comment by juliocas...@gmail.com on 25 Jan 2010 at 3:47

GoogleCodeExporter commented 9 years ago
Please close this issue.

Original comment by juliocas...@gmail.com on 30 Jan 2010 at 8:22