{ "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.

\n

code:

\n

var win = Titanium.UI.currentWindow;

\n

win.orientationModes = [Ti.UI.LANDSCAPE_LEFT];

\n

var flexSpace = Titanium.UI.createButton({

\n
\nsystemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\n
\n

});

\n

var tf = Titanium.UI.createTextField({

\n
\nheight:32,\nbackgroundImage:'../images/inputfield.png',\nwidth:200,\nfont:{fontSize:13},\ncolor:'#777',\npaddingLeft:10,\nborderStyle:Titanium.UI.INPUT_BORDERSTYLE_NONE\n
\n

});

\n

var camera = Titanium.UI.createButton({

\n
\nbackgroundImage:'../images/camera.png',\nheight:33,\nwidth:33\n
\n

}); camera.addEventListener('click', function()
\n{

\n
\nTitanium.UI.createAlertDialog({title:'Toolbar',message:'You clicked camera!'}).show();\n
\n

});

\n

var send = Titanium.UI.createButton({

\n
\nbackgroundImage:'../images/send.png',\nbackgroundSelectedImage:'../images/send_selected.png',\nwidth:67,\nheight:32\n
\n

}); send.addEventListener('click', function()
\n{

\n
\nTitanium.UI.createAlertDialog({title:'Toolbar',message:'You clicked send!'}).show();\n
\n

});

\n

var textfield = Titanium.UI.createTextField({

\n
\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

});

\n

var textfield2 = Titanium.UI.createTextField({

\n
\ncolor:'#336699',\nvalue:'Focus to see keyboard w/o toolbar',\nheight:35,\nwidth:300,\ntop:70,\nborderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\n
\n

});

\n

win.add(textfield);
\nwin.add(textfield2);

{html}", "attachment": [], "flagged": false, "summary": "Keyboard toolbar hides on landscape orientation", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128478", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(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...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:57.000+0000", "updated": "2011-04-15T03:19:57.000+0000" }, { "id": "128479", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested on Kitchen Sink (textfield_toolbar.js). Modified the file\nto work on portrait and landscape.

\n
\nwin.orientationModes = [1,2,3,4];\n
\n

Working as Expected

\n

Ti SDK 1.6 (Jan 26 2011 18:55 rbd12917d)
\niPhone 4 (4.2.1)
\niPhone Simulator 4.2

{html}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:57.000+0000", "updated": "2011-04-15T03:19:57.000+0000" }, { "id": "128480", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

Resolved

{html}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:58.000+0000", "updated": "2011-04-15T03:19:58.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }