{ "id": "63074", "key": "TIMOB-2442", "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": [ { "id": "11238", "name": "Release 1.6.0 M05", "archived": true, "released": true, "releaseDate": "2011-01-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:07.000+0000", "created": "2011-04-15T03:19:56.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "defect", "field", "ios", "ipad", "iphone", "release-1.6.0", "rplist", "text", "toolbar" ], "versions": [], "issuelinks": [ { "id": "14129", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "83546", "key": "TIMOB-6551", "fields": { "summary": "iOS: keytoolbar hiding behind the keypad on changing orientation ", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-12-09T16:20:55.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": "{html}
On iOS 4.1/4.2 using 1.4.2 & 1.5 when a keyboard has a\ntoolbar and the orientation changes to landscape the toolbar does\nnot show.
\ncode:
\nvar win = Titanium.UI.currentWindow;
\nwin.orientationModes = [Ti.UI.LANDSCAPE_LEFT];
\nvar flexSpace = Titanium.UI.createButton({
\nsystemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
\n
\n});
\nvar tf = Titanium.UI.createTextField({
\nheight:32,\nbackgroundImage:'../images/inputfield.png',\nwidth:200,\nfont:{fontSize:13},\ncolor:'#777',\npaddingLeft:10,\nborderStyle:Titanium.UI.INPUT_BORDERSTYLE_NONE
\n
\n});
\nvar camera = Titanium.UI.createButton({
\nbackgroundImage:'../images/camera.png',\nheight:33,\nwidth:33
\n
\n}); camera.addEventListener('click', function()
\n{
\nTitanium.UI.createAlertDialog({title:'Toolbar',message:'You clicked camera!'}).show();
\n
\n});
\nvar send = Titanium.UI.createButton({
\nbackgroundImage:'../images/send.png',\nbackgroundSelectedImage:'../images/send_selected.png',\nwidth:67,\nheight:32
\n
\n}); send.addEventListener('click', function()
\n{
\nTitanium.UI.createAlertDialog({title:'Toolbar',message:'You clicked send!'}).show();
\n
\n});
\nvar textfield = Titanium.UI.createTextField({
\ncolor:'#336699',\nvalue:'Focus to see keyboard w/ toolbar',\nheight:35,\nwidth:300,\ntop:10,\nborderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,\nkeyboardToolbar:[flexSpace,camera, flexSpace,tf,flexSpace, send,flexSpace],\nkeyboardToolbarColor: '#999', \nkeyboardToolbarHeight: 40
\n
\n});
\nvar textfield2 = Titanium.UI.createTextField({
\ncolor:'#336699',\nvalue:'Focus to see keyboard w/o toolbar',\nheight:35,\nwidth:300,\ntop:70,\nborderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED
\n
\n});
\nwin.add(textfield);
\nwin.add(textfield2);
(from [bbca90499aa7caf3393ca91d04f9243428f24e8d])\n[#1645 state:fixed-in-qa] [#1714\nstate:fixed-in-qa] [#2189 state:fixed-in-qa] [#2442\nstate:fixed-in-qa] [#1645 state:fixed-in-qa milestone:\"Release 1.6.0\nM05\"] [#2736 state:fixed-in-qa milestone:\"Release 1.6.0\nM05\"] [#2746 state:fixed-in-qa milestone:\"Release 1.6.0\nM05\"] [#2197 state:fixed-in-qa milestone:\"Release 1.6.0\nM05\"] [#2746 state:fixed-in-qa milestone:\"Release 1.6.0\nM05\"] Look ma, I fixed the keyboard! \nhttps://github.com/appcelerator/titanium_mobile/commit/bbca90499aa7...
Tested on Kitchen Sink (textfield_toolbar.js). Modified the file\nto work on portrait and landscape.
\n\nwin.orientationModes = [1,2,3,4];
\n
\nWorking as Expected
\nTi SDK 1.6 (Jan 26 2011 18:55 rbd12917d)
\niPhone 4 (4.2.1)
\niPhone Simulator 4.2
Resolved