[
https://issues.apache.org/jira/browse/CB-5969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antonio R updated CB-5969:
--------------------------
Description:
Hello,
Originally I was setting this option in the config.xml file until I realized it
is actually only available after installing the keyboard plugin first and is
not included with the core APIs shown when following the docs. So I installed
the keyboard plugin, but this option still does not work. The keyboard resizing
also introduces an app breaking bug which is the reason I am trying to disable
it. See example screenshot here:
http://imgur.com/q6OtuA2
essentially when the keyboard comes up my application attempts to resize but
half/over half is rendered completely black (its as though the resizing is
incorrectly calculating the new size). This error disappears if I include
"heigh=device-height" in my meta tag for the index.html, but it is explicitly
stated in the documentation that this should not be used, and indeed it does
introduce some unwanted styling into the application (using this meta tag
disables resizing on rotation in our application). However, this leads me to
believe that it is indeed the resizing that is causing this bug.
My config.xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.profoundlogic.puiclient" version="0.0.1"
xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Hello Cordova</name>
<preference name="AllowInlineMediaPlayback" value="false" />
<preference name="KeyboardShrinksView" value="true" />
<preference name="BackupWebStorage" value="cloud" />
<preference name="DisallowOverscroll" value="true" />
<preference name="EnableViewportScale" value="false" />
<preference name="KeyboardDisplayRequiresUserAction" value="true" />
<preference name="MediaPlaybackRequiresUserAction" value="false" />
<preference name="SuppressesIncrementalRendering" value="false" />
<preference name="TopActivityIndicator" value="gray" />
<preference name="GapBetweenPages" value="0" />
<preference name="PageLength" value="0" />
<preference name="PaginationBreakingMode" value="page" />
<preference name="PaginationMode" value="unpaginated" />
<preference name="webviewbounce" value="false" />
<feature name="LocalStorage">
<param name="ios-package" value="CDVLocalStorage" />
</feature>
<name>PUIClient</name>
<description>
A sample Apache Cordova application that responds to the deviceready
event.
</description>
<author email="[email protected]" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<access origin="*" />
<feature name="Battery">
<param name="ios-package" value="CDVBattery" />
</feature>
<feature name="Camera">
<param name="ios-package" value="CDVCamera" />
</feature>
<feature name="Console">
<param name="ios-package" value="CDVLogger" />
</feature>
<feature name="Contacts">
<param name="ios-package" value="CDVContacts" />
</feature>
<feature name="Device">
<param name="ios-package" value="CDVDevice" />
</feature>
<feature name="Accelerometer">
<param name="ios-package" value="CDVAccelerometer" />
</feature>
<feature name="Compass">
<param name="ios-package" value="CDVCompass" />
</feature>
<feature name="Notification">
<param name="ios-package" value="CDVNotification" />
</feature>
<feature name="File">
<param name="ios-package" value="CDVFile" />
</feature>
<feature name="FileTransfer">
<param name="ios-package" value="CDVFileTransfer" />
</feature>
<feature name="Geolocation">
<param name="ios-package" value="CDVLocation" />
</feature>
<feature name="Globalization">
<param name="ios-package" value="CDVGlobalization" />
</feature>
<feature name="InAppBrowser">
<param name="ios-package" value="CDVInAppBrowser" />
</feature>
<feature name="Media">
<param name="ios-package" value="CDVSound" />
</feature>
<feature name="Capture">
<param name="ios-package" value="CDVCapture" />
</feature>
<feature name="NetworkStatus">
<param name="ios-package" value="CDVConnection" />
</feature>
<feature name="SplashScreen">
<param name="ios-package" value="CDVSplashScreen" />
<param name="onload" value="true" />
</feature>
<feature name="Vibration">
<param name="ios-package" value="CDVVibration" />
</feature>
<feature name="BarcodeScanner">
<param name="ios-package" value="CDVBarcodeScanner" />
</feature>
<feature name="Keyboard">
<param name="ios-package" onload="true" value="CDVKeyboard" />
</feature>
<preference name="KeyboardShrinksView" value="false" />
</widget>
was:
Hello,
Originally I was setting this option in the config.xml file until I realized it
is actually only available after installing the keyboard plugin first and is
not included with the core APIs shown when following the docs. So I installed
the keyboard plugin, but this option still does not work. The keyboard resizing
also introduces an app breaking bug which is the reason I am trying to disable
it. See screenshot. This error disappears if I include "heigh=device-height" in
my meta tag for the index.html, but it is explicitly stated in the
documentation that this should not be used, and indeed it does introduce some
unwanted styling into the application (using this meta tag disables resizing on
rotation in our application). However, this leads me to believe that it is
indeed the resizing that is causing this bug.
> App resizes regardless of KeyboardShrinksView settings
> ------------------------------------------------------
>
> Key: CB-5969
> URL: https://issues.apache.org/jira/browse/CB-5969
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 3.3.0
> Environment: Latest iOS version to date, as well as latest Xcode
> Reporter: Antonio R
>
> Hello,
> Originally I was setting this option in the config.xml file until I realized
> it is actually only available after installing the keyboard plugin first and
> is not included with the core APIs shown when following the docs. So I
> installed the keyboard plugin, but this option still does not work. The
> keyboard resizing also introduces an app breaking bug which is the reason I
> am trying to disable it. See example screenshot here:
> http://imgur.com/q6OtuA2
>
> essentially when the keyboard comes up my application attempts to resize but
> half/over half is rendered completely black (its as though the resizing is
> incorrectly calculating the new size). This error disappears if I include
> "heigh=device-height" in my meta tag for the index.html, but it is explicitly
> stated in the documentation that this should not be used, and indeed it does
> introduce some unwanted styling into the application (using this meta tag
> disables resizing on rotation in our application). However, this leads me to
> believe that it is indeed the resizing that is causing this bug.
> My config.xml
> <?xml version='1.0' encoding='utf-8'?>
> <widget id="com.profoundlogic.puiclient" version="0.0.1"
> xmlns="http://www.w3.org/ns/widgets"
> xmlns:cdv="http://cordova.apache.org/ns/1.0">
> <name>Hello Cordova</name>
> <preference name="AllowInlineMediaPlayback" value="false" />
> <preference name="KeyboardShrinksView" value="true" />
> <preference name="BackupWebStorage" value="cloud" />
> <preference name="DisallowOverscroll" value="true" />
> <preference name="EnableViewportScale" value="false" />
> <preference name="KeyboardDisplayRequiresUserAction" value="true" />
> <preference name="MediaPlaybackRequiresUserAction" value="false" />
> <preference name="SuppressesIncrementalRendering" value="false" />
> <preference name="TopActivityIndicator" value="gray" />
> <preference name="GapBetweenPages" value="0" />
> <preference name="PageLength" value="0" />
> <preference name="PaginationBreakingMode" value="page" />
> <preference name="PaginationMode" value="unpaginated" />
> <preference name="webviewbounce" value="false" />
> <feature name="LocalStorage">
> <param name="ios-package" value="CDVLocalStorage" />
> </feature>
> <name>PUIClient</name>
> <description>
> A sample Apache Cordova application that responds to the deviceready
> event.
> </description>
> <author email="[email protected]" href="http://cordova.io">
> Apache Cordova Team
> </author>
> <content src="index.html" />
> <access origin="*" />
> <feature name="Battery">
> <param name="ios-package" value="CDVBattery" />
> </feature>
> <feature name="Camera">
> <param name="ios-package" value="CDVCamera" />
> </feature>
> <feature name="Console">
> <param name="ios-package" value="CDVLogger" />
> </feature>
> <feature name="Contacts">
> <param name="ios-package" value="CDVContacts" />
> </feature>
> <feature name="Device">
> <param name="ios-package" value="CDVDevice" />
> </feature>
> <feature name="Accelerometer">
> <param name="ios-package" value="CDVAccelerometer" />
> </feature>
> <feature name="Compass">
> <param name="ios-package" value="CDVCompass" />
> </feature>
> <feature name="Notification">
> <param name="ios-package" value="CDVNotification" />
> </feature>
> <feature name="File">
> <param name="ios-package" value="CDVFile" />
> </feature>
> <feature name="FileTransfer">
> <param name="ios-package" value="CDVFileTransfer" />
> </feature>
> <feature name="Geolocation">
> <param name="ios-package" value="CDVLocation" />
> </feature>
> <feature name="Globalization">
> <param name="ios-package" value="CDVGlobalization" />
> </feature>
> <feature name="InAppBrowser">
> <param name="ios-package" value="CDVInAppBrowser" />
> </feature>
> <feature name="Media">
> <param name="ios-package" value="CDVSound" />
> </feature>
> <feature name="Capture">
> <param name="ios-package" value="CDVCapture" />
> </feature>
> <feature name="NetworkStatus">
> <param name="ios-package" value="CDVConnection" />
> </feature>
> <feature name="SplashScreen">
> <param name="ios-package" value="CDVSplashScreen" />
> <param name="onload" value="true" />
> </feature>
> <feature name="Vibration">
> <param name="ios-package" value="CDVVibration" />
> </feature>
> <feature name="BarcodeScanner">
> <param name="ios-package" value="CDVBarcodeScanner" />
> </feature>
> <feature name="Keyboard">
> <param name="ios-package" onload="true" value="CDVKeyboard" />
> </feature>
> <preference name="KeyboardShrinksView" value="false" />
> </widget>
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)