{ "id": "61147", "key": "TIMOB-515", "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": "11220", "name": "Release 1.1.0", "archived": true, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:21.000+0000", "created": "2011-04-15T02:30:44.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:21.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}
problem 1: focus text field and click return key on keyboard.\ntable view row drops to the bottom
\nproblem 2: focus text field and click close button = crash
\nticket: http://helpdesk.appcelerator.net/tickets/1420
\ncode:
\nvar tgMain = Titanium.UI.createTabGroup();
\nvar winMain = Titanium.UI.createWindow({title:'My App',\ntabBarHidden:true});
\nvar tabMain = Titanium.UI.createTab({title:'',\nwindow:winMain});
\ntgMain.addTab(tabMain);
var btnOpen = Titanium.UI.createButton({
\ntitle:'Open window',
\nwidth:200,
\nheight:40,
\ntop:10
\n});
btnOpen.addEventListener('click', function() {
\nvar win = Titanium.UI.createWindow({title:'My Window'});
var btnClose = Titanium.UI.createButton({title:'Close',\nstyle:Titanium.UI.iPhone.SystemButtonStyle.DONE});
\nwin.setRightNavButton(btnClose);
\nbtnClose.addEventListener('click', function(evt) {
\nwin.close();
\n});
var row = Ti.UI.createTableViewRow();
\nvar tf = Titanium.UI.createTextField({
\nkeyboardType:Titanium.UI.KEYBOARD_DEFAULT,
\nautocorrect:false,
\nhintText:'John Doe',
\nheight:29,
\nwidth:250,
\nclearButtonMode:Titanium.UI.INPUT_BUTTONMODE_ONFOCUS,
\nborderStyle:Titanium.UI.INPUT_BORDERSTYLE_LINE
\n}); row.add(tf);
\nvar data = [];
\ndata[0] = Ti.UI.createTableViewSection();
\ndata[0].add(row);
var tv = Titanium.UI.createTableView({
\nstyle: Titanium.UI.iPhone.TableViewStyle.GROUPED,
\ndata:data,
\nrowHeight:44
\n}); win.add(tv);
tabMain.open(win, {animated:true});
\n});
winMain.add(btnOpen);
\ntgMain.open();