[jira] [Commented] (CB-4404) android:windowSoftInputMode has no effect in full screen mode, and adjustPan does not work in non-full screen mode

2014-06-26 Thread Derk Bell (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14044512#comment-14044512
 ] 

Derk Bell commented on CB-4404:
---

I managed to get things working as I would expect from adjustPan by doing the 
following:

1. In config.xml I have {{preference name=fullscreen value=false /}}
2. In AndroidManifest I have removed any adjustPan or adjustResize
3. I have set a viewport in my HTML: {{meta name=viewport 
content=user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1 
/}}
4. On my body element I set a min-height value in pixels at application start 
{{document.body.style.minHeight = document.body.clientHeight + 'px';}}

This causes the webView to resize in order to make room for the keyboard but 
the web content will remain at the original size. The half screen webview 
becomes scrollable and when selecting an input it stays focussed.

 android:windowSoftInputMode has no effect in full screen mode, and 
 adjustPan does not work in non-full screen mode
 

 Key: CB-4404
 URL: https://issues.apache.org/jira/browse/CB-4404
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 2.9.0
 Environment: * Mac OS 10.7.5
 * Android 4.1.2 and 4.2.2 emulator using Intel's x86 images
Reporter: Daniel Trebbien
Assignee: Andrew Grieve

 _I recently posted a description of this issue to the phonegap group at 
 [https://groups.google.com/d/topic/phonegap/J-h0lt68x0g/discussion]._
 I am testing out PhoneGap 2.9.0 in the Android emulator (using Intel's x86 
 images), and I am seeing the issue that the android:windowSoftInputMode 
 setting is not having an effect.  By default, the setting is set to 
 adjustPan in the generated project, but when I actually focus a text 
 input, the soft keyboard appears on top of the app, but does not pan the 
 main window, and the input is usually hidden beneath the keyboard as a 
 result.
 Steps to reproduce:
 # Create a new PhoneGap 2.9.0 project using the {{cordova create}} utility.  
 Add the 'android' platform.
 # Open the project in Eclipse.
 # Edit {{index.html}} to add {{brbrbrbrbrbrbrinput 
 placeholder=Text box}} below the {{h1Apache Cordova/h1}} heading.
 # Run the app in Android 4.1.2 or 4.2.2 emulator.
 # Tap the input and notice that the soft keyboard is placed over the app 
 and the input is hidden beneath.
 # Try changing the android:windowSoftInputMode setting in 
 {{AndroidManifest.xml}} to adjustResize, reload the app, and notice that 
 the app is not resized when the input receives keyboard focus.
 I am seeing this problem in Android 4.1.2 and 4.2.2 emulator.  In Android 
 4.0.3 emulator, the app pans as expected.
 The strange thing is that if I load the www/ files in the Browser and focus 
 the input, then the window is resized to fit the soft keyboard like normal. 
  This seems to imply that android:windowSoftInputMode works fine in the 
 emulator, but there is some issue in PhoneGap that is preventing it from 
 working.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-4474) Globalization is not working in PhoneGap 3.0

2013-08-06 Thread Derk Bell (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13730514#comment-13730514
 ] 

Derk Bell commented on CB-4474:
---

Got the same for phonegap@3.0.0-0.14.3 / cordova@3.0.4 and Geolocation 
plugin.xml lists 0.1.0. It seems from CDVGeolocation.h that the methods have an 
old (pre 2.8) signature? All working plugins seem to use the 
method:(CDVInvokedUrlCommand*)command; signature where the Geolocation plugins 
still uses method:(NSMutableArray*)arguments 
withDict:(NSMutableDictionary*)options; Could that be the problem?

 Globalization is not working in PhoneGap 3.0
 

 Key: CB-4474
 URL: https://issues.apache.org/jira/browse/CB-4474
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin Globalization
Affects Versions: 3.0.0
 Environment: Android and iOS.
Reporter: Raymond Camden
Assignee: Steve Gill

 Discussed on this Google Groups thread, 
 https://groups.google.com/forum/#!topic/phonegap/5YmjhUcuuR8%5B1-25-false%5D, 
 Globalization is failing in 3.0. In iOS, the success/error handler never 
 fires. If you open XCode and run from there, you see:
 2013-07-29 13:21:55.113 HelloWorld[21542:c07] ERROR: Method 
 'getPreferredLanguage:' not defined in Plugin 'Globalization'
 2013-07-29 13:21:55.113 HelloWorld[21542:c07] -[CDVCommandQueue 
 executePending] [Line 116] FAILED pluginJSON = [
   Globalization1890587700,
   Globalization,
   getPreferredLanguage,
   [
   ]
 ]
 In Android, the error handler fires with: Class not found

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira