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

Native Development

Reply
Developer
Posts: 122
Registered: ‎11-12-2010
My Device: Dev Alpha
My Carrier: N/A
Accepted Solution

Background Image Compresses when keyboard shown

Hi

 

I have an app that uses an ImageView on the root container to show a background image.  All is well until I tap a textfield to show the keyboard. When they keyboard shows, the background image gets compressed to allow for the keyboard height.

 

Is there anyway of preventing this?

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Background Image Compresses when keyboard shown

Have you set a minHeight on it? If you do that, it should not get compressed at all... I would think. I haven't tried reproducing your scenario and testing this.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: Background Image Compresses when keyboard shown

If you dont care about your content moving up on the screen (i.e. if is visible even when the keyboard is shown without moving) then you may consider changing the resize behavior on the page. if you set it to none the keyboard will just overlay you content instead of resize.
Like all of my posts
Developer
Posts: 122
Registered: ‎11-12-2010
My Device: Dev Alpha
My Carrier: N/A

Re: Background Image Compresses when keyboard shown

Thanks Guys

 

Iin this instance i wanted the keyboard to overlay the screen.