WangChairman / android-wheel

Automatically exported from code.google.com/p/android-wheel
0 stars 0 forks source link

Display items not always centering vertically #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
First - superb, excellent, brilliant and thanks so much for this, its very good 
of you to provide this to the community.

What steps will reproduce the problem?

1. Set the height of the container, so that at text height 24 (the default), 
there is not enough room to totally display 4 'display items' vertically (I was 
using a simple number picker)
2. Observe that the display tries to fit 4 on the screen but cant centre the 
numbers in the screen (I am using a simple number picker)

What is the expected output? 
  1
-
  2
-
  3

What do you see instead?

  1

- 2

- 3

  4

What version of the product are you using? 
1.4
On what operating system?
Android 2.2

Please provide any additional information below.
I tried playing with text height, setting it to 16 seemed to work OK (but that 
means I had to edit core code since text height is not a settable attribute, 
mking upgrades in the future more difficult). 

I think I might see the same issue when the screen size changes though, and 
supporting multiple screen heights is exactly the thing that will prevent me 
from explicitly setting the height of the container for the wheel.

Original issue reported on code.google.com by davidhil...@gmail.com on 5 Dec 2010 at 12:53

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you!
It should be fixed in scope of #10 issue.

Original comment by yuri.kan...@gmail.com on 25 Dec 2010 at 7:22

GoogleCodeExporter commented 9 years ago
Should work now

Original comment by yuri.kan...@gmail.com on 27 Jan 2011 at 8:56