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

Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant

Re: Ui problems to render with scroll

Hello arkadyz!

It is very helpful answer, thanks a lot.


Best Regards, Rampelotti

Posts: 25
Registered: ‎06-17-2010
My Device: 9000
My Carrier: Vodafone

Re: Ui problems to render with scroll



I have one more option.....

Just Copy and paste this in the Child onFocus Function and check....... which are adding to the Main Manager. This will fix the issues when it is out of scope with Focus (in both Up and Down directions)


protected void onFocus(int direction) {
                    XYRect fieldExtent = this.getExtent();
                    if( ( fieldExtent.y + fieldExtent.height ) > ( this.getManager().getHeight() + this.getManager().getVerticalScroll() ) )
                        int yoffset = this.getHeight() - (this.getManager().getVerticalScroll()+ this.getManager().getHeight() - fieldExtent.y );
                        this.getManager().setVerticalScroll(this.getManager().getVerticalScroll()+ yoffset);

if(direction==-1 && this.getManager().getVerticalScroll() > fieldExtent.y )