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

\n

problem 2: focus text field and click close button = crash

\n

ticket: http://helpdesk.appcelerator.net/tickets/1420

\n

code:

\n

var 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);

\n

var btnOpen = Titanium.UI.createButton({
\ntitle:'Open window',
\nwidth:200,
\nheight:40,
\ntop:10
\n});

\n

btnOpen.addEventListener('click', function() {

\n

var win = Titanium.UI.createWindow({title:'My Window'});

\n

var btnClose = Titanium.UI.createButton({title:'Close',\nstyle:Titanium.UI.iPhone.SystemButtonStyle.DONE});
\nwin.setRightNavButton(btnClose);
\nbtnClose.addEventListener('click', function(evt) {
\nwin.close();
\n});

\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);

\n

var tv = Titanium.UI.createTableView({
\nstyle: Titanium.UI.iPhone.TableViewStyle.GROUPED,
\ndata:data,
\nrowHeight:44
\n}); win.add(tv);

\n

tabMain.open(win, {animated:true});
\n});

\n

winMain.add(btnOpen);
\ntgMain.open();

{html}", "attachment": [], "flagged": false, "summary": "table view with text field (render problem + crash)", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123435", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [2e2ca117dd9e0431d28705567b25eedd01ad34f2])\nCloses #515 \nhttp://github.com/appcelerator/titanium_mobile/commit/2e2ca117dd9e0...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:44.000+0000", "updated": "2011-04-15T02:30:44.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }