Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
peterdeka
Posts: 39
Registered: ‎04-06-2011
My Device: Bold 9780
Accepted Solution

ListField row height not consistent across different devices

Hi i have a small issue with my custom listfield, i tried it across different simulators and it works fine on the storm, 8520 but on the 8900 or 9700 i get the rows overlap as in the image. I'm using setRowHeight upon list creation, i also tried to change values(putting numbers just to try) and on those devices nothing happens...has anyone idea of what it could be?

thanks

8900-01.png

 

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: ListField row height not consistent across different devices

I have not seen this problem and have ListFields that work across all these devices.

 

I would guess this is a Font size issue. I would recommend that you set the ListField's row height dependent on the Font that you are using.

 

You can check the row height in your drawListRow method to make sure you are not going to overflow it too.

 

If this does not help, can you give us some code to review and/or try?

Contributor
peterdeka
Posts: 39
Registered: ‎04-06-2011
My Device: Bold 9780

Re: ListField row height not consistent across different devices

[ Edited ]

Thanks peter, actually i set my row height as a negative number so it depends on font height but what's strange is that if i change it with any number (+ or neg) it doesn't change(both visually and checking with getRowHeight returns always the same(8520 return 18,9800 returns 27)....i'm sure i'm not calling setrowheight anywhere else in my code)!

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: ListField row height not consistent across different devices

Are you seeing this on the Simulator as well?  if so which ones (OS Levels too please).  Sounds like it should be easy to set up a little test program and replicate this.

Contributor
peterdeka
Posts: 39
Registered: ‎04-06-2011
My Device: Bold 9780

Re: ListField row height not consistent across different devices

thanks man, you were very kind. i solved this by myself, it was a problem related to my custom implementation. post can be deleted.thanks

Contributor
shreyas-vish
Posts: 12
Registered: ‎08-22-2011
My Device: developer

Re: ListField row height not consistent across different devices

[ Edited ]

hey,

i am facing the same problem here...

could i trouble you to tell us how you solved the problem?

New Contributor
berryfan537
Posts: 3
Registered: ‎07-31-2012
My Device: Torch

Re: ListField row height not consistent across different devices

Hallo,

im facing the same problem and found this post. Could somebody be so kind and post the solution to this?

Thank you very much in advance.

 

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: ListField row height not consistent across different devices

please create your own thread about the issue
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter