Hichem-elAbassi / j4me

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

Dialog scrolls to the top when components update (should stay still) #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the GPS example
2. Scroll to the bottom
3. When the GPS updates it forces the dialog to the top

What is the expected output? What do you see instead?
The scroll should not change.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by deanbro...@gmail.com on 10 Mar 2008 at 4:02

GoogleCodeExporter commented 9 years ago
Was calling invalidate() before the repaint().

Original comment by deanbro...@gmail.com on 14 Mar 2008 at 10:00

GoogleCodeExporter commented 9 years ago
.invalidate() is needed so it should be added back in to the example.

The problem is that components should be able to invalidate just their area of a
form.  Therefore calling invalidate() will not make the screen jump to the top.

Original comment by deanbro...@gmail.com on 16 Mar 2008 at 6:09

GoogleCodeExporter commented 9 years ago
Fixed.  Slight bug remaining (captured by issue 27) which happens when a 
component is
removed or hidden before the call to Dialog.invalidate().

Original comment by deanbro...@gmail.com on 15 Apr 2008 at 12:56

GoogleCodeExporter commented 9 years ago
Oops.  Previous comment's "slight bug" is issue 29, not 27.

Original comment by deanbro...@gmail.com on 15 Apr 2008 at 12:59