This is a migrated thread and some comments may be shown as answers.

View data-stretch problem iPhone 4s

1 Answer 26 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
nepuntobiz
Top achievements
Rank 2
nepuntobiz asked on 25 Jul 2015, 05:55 PM

Hello,

 I'm using a view with the attribute data-stretch="true" to set a background image for in a view. It works fine for Android but I'm having troubles with an iPhone 4S. It seems like is not filling the whole viewport leaving an empty (what seems to be iPhone's status bar?) space. Please take a look at the screenshot.

 That's me hovering the view in the device debugger as you can see is not filling the viewport entirely and I need it to fill the whole viewport.

 I've got the StatusBar plugin on too. Please any help to resolve this is appreciated.

 

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 29 Jul 2015, 08:59 AM
Hi Javier,

Looking at the image, it seems like your status bar has a black background set to it. To remove it, you should open the iOS config.xml file and remove this setting:
<preference name="StatusBarBackgroundColor" value="#000000" />

After this, your status bar should become transparent.

I am not sure why you get the black line at the bottom, so if it remains this way and you want to remove it, consider sending us your project, so we can debug it locally.

Regards,
Tsvetina
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
nepuntobiz
Top achievements
Rank 2
Answers by
Tsvetina
Telerik team
Share this question
or