IBM Worklight 5.0.6.1 - Bottom white space in iOS 7

回眸只為那壹抹淺笑 提交于 2020-01-20 08:30:34

问题


As you can see, at the bottom of my page remains a white space. Its height is the same of the old status bar that was present in ios6. Do i have to modify css? Because I never fixed an height for my app, worklight has always chosen the right size.

EDIT: you have to save the image and open in a desktop with different color to see the white space at the bottom.

*
 *  Licensed Materials - Property of IBM
 *  5725-G92 (C) Copyright IBM Corp. 2011, 2013. All Rights Reserved.
 *  US Government Users Restricted Rights - Use, duplication or
 *  disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 */

// This method is invoked after loading the main HTML and successful initialization of the Worklight runtime.
function wlEnvInit(){
    wlCommonInit();
    // Environment initialization code goes here
}

//Wait for Cordova to load
//
document.addEventListener("deviceready", onDeviceReady, false);

// Cordova is ready
//
function onDeviceReady() {
    alert(device.version);
    if(device.version > "6.0")
        $(".elmecHeader").css("height", "70px");
}

回答1:


Worklight 6.0.0.1 was just released over the weekend; it addresses the status bar issue depicted in your screen shot.
The fix for 5.0.6.1 is not publically available (it is for customers who use this version and require it).

Update:
The white spacing at the bottom was a Worklight bug and is fixed in the latest 6.0.0.1 iFix as well as available for Worklight 6.0.0.x and Worklight 5.0.x for customers from IBM Fix Centeral.




回答2:


Yes, you will need to adjust your application for iOS 7.

You can use Cordova Device API to detect the OS that the app is running on and use different CSS for the different OS layout in iOS 6 and 7 (if you wish so).

I suggest to add more of the green background at the top, so that the new status bar in iOS 7 will not overlap with your app design.

This is a problem all web-based apps will suffer from in iOS until a proper solution is devised.

Be sure to also read the Apple-provided iOS 7 Transition Guide.

The above is one suggested approach; you should probably read more material about iOS 7 design and about how the status bar behaves in iOS 7 and choose the right path for your app.

  • http://ivomynttinen.com/blog/the-ios-7-design-cheat-sheet/
  • http://www.slideshare.net/evgenybelyaev16/transition-guide

As for the bottom spacing, this is a bug in Worklight.




回答3:


Worklight was updated since you posted your question.

Download the latest version of fixpacks, and make sure to read the tech note entirely: http://www-01.ibm.com/support/docview.wss?uid=swg27039574



来源:https://stackoverflow.com/questions/18533271/ibm-worklight-5-0-6-1-bottom-white-space-in-ios-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!