{ "id": "160972", "key": "TIMOB-23491", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-08-09T10:36:32.000+0000", "created": "2016-06-10T05:00:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "TextField", "iOS", "iPadPro" ], "versions": [], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-08-09T10:36:32.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Hi,\r\nWe are facing a problem with TextField with latest Ti SDK(5.2.2 GA) and iPad Pro device. I did not try with other versions\r\nHere is code\r\n{code:title=index.xml|borderStyle=solid}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n{code}\r\n\r\n{code:title=index.tss|borderStyle=solid}\r\n\".container\": {\r\n\tbackgroundColor:\"#FFF\"\r\n}\r\n\"#okCancelView\":{\r\n\twidth:500,\r\n\theight:40,\r\n\ttop: 68\r\n}\r\n\"#txtField\":{\r\n\twidth: 500,\r\n\theight:50,\r\n\tborderColor:\"#CCC\",\r\n\tborderWidth:2\r\n}\r\n{code}\r\nWe are getting onscreen keyboard, like this with above code in iPad pro\r\n!http://i.stack.imgur.com/TS1Jh.png!\r\n\r\nBut if I create sample app in Xcode with textField, We are getting like this.\r\n!http://i.stack.imgur.com/Py9ai.png!\r\n\r\nHow to get default keyboard layout, same as XCode in Titanium.", "attachment": [ { "id": "59839", "filename": "protest.zip", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-20T17:29:11.000+0000", "size": 24620, "mimeType": "application/zip" } ], "flagged": false, "summary": "Keyboard Layout Issue in iPad Pro", "creator": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Ti SDK : 5.2.2 GA\r\nDevice : iPad Pro\r\n", "comment": { "comments": [ { "id": "388639", "author": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "body": "same result using 5.3.0 SDK", "updateAuthor": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2016-06-20T09:20:40.000+0000", "updated": "2016-06-20T09:20:40.000+0000" }, { "id": "390749", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi [~nagaharish] using 5.4.0 with the below demo-code should fix the issue. The reason the keyboard looks different initially is because a different constant gets set on the SDK compared to Xcode. Which I find interesting as it means the keyboard displayed by default in Xcode is UIKeyboardTypeASCIICapable instead of UIKeyboardTypeDefault.\r\n\r\nDemo Code: \r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar textField = Ti.UI.createTextField({\r\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n keyboardType:Titanium.UI.KEYBOARD_TYPE_ASCII,\r\n color: '#336699',\r\n top: 10, left: 10,\r\n width: 250, height: 60\r\n});\r\n\r\nwin.add(textField);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-14T23:22:38.000+0000", "updated": "2016-07-14T23:22:38.000+0000" }, { "id": "390790", "author": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Thank you @Angel Petkov, But may I know when we can get proper fix for it.\r\nBecause adding \r\n{code:java}\r\nkeyboardType:Titanium.UI.KEYBOARD_TYPE_ASCII,\r\n{code}\r\n manual bit hard for me. ", "updateAuthor": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2016-07-15T10:00:18.000+0000", "updated": "2016-07-15T10:11:34.000+0000" }, { "id": "391102", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just tested with latest Xcode and it behaves exactly as we do (since we don't set anything internal as well that could override it). See the attached Xcode project. \r\n\r\nTo note: 9.7\" acts the same as we do, the 12.9\" acts differently.\r\n\r\n*EDIT*: You very possibly selected the wrong iPad Pro simulator during your comparisons. Just tested the following code using an 12.9\" simulator in Titanium ([Screen|https://abload.de/img/simulatorscreenshot20mxko6.png]):\r\n{code:javascript}\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\n\r\nwin.add(Ti.UI.createTextField({width: 200, height: 50, backgroundColor: \"gray\"}));\r\nwin.open();\r\n{code}\r\n\r\nPlease confirm, thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-20T17:28:52.000+0000", "updated": "2016-07-20T17:35:03.000+0000" }, { "id": "391174", "author": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "body": "May be I am selecting wrong simulator. But I tested in really Device (iPad pro). Same issue is there in it also.\r\nXcode it works fine. But Titanium code only keyboard is different. ", "updateAuthor": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2016-07-21T05:57:21.000+0000", "updated": "2016-07-21T05:57:21.000+0000" }, { "id": "391541", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~nagaharish] Hello, we can't push the fix you desire for two reasons. The first being it's easily fixed if using one of the constant since that's what they are for, otherwise we would have to implement a way of changing the constant depending on the device.\r\n\r\nSecondly, to achieve it would require applying some bad practices it would also mean that the constants would differ depending on the device as oppose to having one default constant. We would be introducing behavior different to the rest of our UI components.\r\n\r\nIn conclusion to avoid the different appearance in the keyboard please set the appropriate constant.", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-26T19:11:53.000+0000", "updated": "2016-07-26T19:11:53.000+0000" }, { "id": "391614", "author": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "body": "@Angel Thank you, So I need to manual set this.Ok I will take care. Is above solution works fine with 5.3.0 or 5.3.1. In above comment ur saying 5.4.0 version, but for me last update was 5.3.1 GA.\r\n", "updateAuthor": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2016-07-27T03:55:04.000+0000", "updated": "2016-07-27T03:55:04.000+0000" }, { "id": "391617", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No problem! I was testing using 5.4.0, however it will work with both 5.3.0 or 5.3.1. Code strong! ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-27T04:46:30.000+0000", "updated": "2016-07-27T04:46:30.000+0000" }, { "id": "391652", "author": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "body": "@Angel \r\nI tried like this \r\n\r\n{code:js}\r\nvar textField = Ti.UI.createTextField({\r\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n keyboardType:Titanium.UI.KEYBOARD_TYPE_ASCII,\r\n color: \"#336699\",\r\n top: 10,\r\n left: 10,\r\n width: 250, \r\n height: 60\r\n});\r\n$.index.add(textField);\r\n$.index.open();\r\n{code}\r\nI run in real device also still same issue. keyboard layout is not as expected.\r\nTried in Ti SDK 5.3.0 and 5.3.1\r\nWith Xcode 7.3\r\n\r\nPlease help me.\r\n", "updateAuthor": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2016-07-27T11:19:36.000+0000", "updated": "2016-07-27T11:24:26.000+0000" }, { "id": "391874", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just tested using the code above with 5.3.1 GA and 5.3.0, on simulator and device. What I'm seeing is the same keyboard layout as the image representing xcode posted above, the resulting [image|http://imgur.com/a/RwOd4]. \r\n\r\nCan you please confirm if that is the same result ? ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-28T18:58:46.000+0000", "updated": "2016-07-28T18:58:46.000+0000" }, { "id": "392723", "author": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "body": "@Angle:\r\nIn existing application after added below line. With out doing any change, in iPad pro I am getting the keyboard what we expected. same like this [http://imgur.com/a/RwOd4]\r\nEven I did not added \"keyboardType:Titanium.UI.KEYBOARD_TYPE_ASCII\" also.\r\n\r\n{code:xml}\r\ntrue \r\n{code}\r\n\r\nBut my total UI is changed. If I added above line in iPad pro. Please suggest me how to fix this. ", "updateAuthor": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2016-08-09T10:32:37.000+0000", "updated": "2016-08-09T10:32:37.000+0000" }, { "id": "392724", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Oh, good catch! Yes, the iPad-pro handling is of course only enabled if you enable storyscreen-support and/or set the {{UIRequiresFullScreen}} value to {{true}} in your plist. If you remove that from native xcode-projects, you will have the same behavior as we have by default. Again: We do not intercept that behavior, it's a matter of configuration. Will close this ticket for now, thanks again!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-09T10:36:24.000+0000", "updated": "2016-08-09T10:36:24.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }