{ "id": "128173", "key": "TIMOB-16707", "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": null, "resolutiondate": null, "created": "2014-03-26T12:00:54.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "RTN", "engTriage", "supportTeam" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" }, { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [], "assignee": null, "updated": "2020-01-15T19:02:59.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Description\r\nTableView Row height doesn't resize when adding multiple views. But once tableview scrolls, rows height will adjust as expected.\r\n\r\nh2. Test Case\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow();\r\n\r\n\r\nvar section1 = Ti.UI.createTableViewSection();\r\n\r\nvar data = {\r\n\t\tlatitude : '1',\r\n\t\tlongitude : '1',\r\n\t\timage : 'Y',\r\n\t\tisImg : true\r\n\r\n\t};\r\n\t\r\nvar infoRow = Ti.UI.createTableViewRow({\r\n\t\theight : Ti.UI.SIZE,\r\n\t\twidth : Ti.UI.FILL,\r\n\t\tbackgroundColor : 'transparent',\r\n\t\tselectedBackgroundColor : 'transparent'\r\n\t});\r\n\t\r\nvar infoView = Ti.UI.createView({\r\n\t\tlayout : 'horizontal',\r\n\t\theight : Ti.UI.SIZE,\r\n\t\twidth : Ti.UI.FILL,\r\n\t\ttop : 10,\r\n\t\tbottom : 10,\r\n\t\tbackgroundGradient : {\r\n\t\t\ttype : 'linear',\r\n\t\t\tstartPoint : {\r\n\t\t\t\tx : '0%',\r\n\t\t\t\ty : '75%'\r\n\t\t\t},\r\n\t\t\tendPoint : {\r\n\t\t\t\tx : '75%',\r\n\t\t\t\ty : '0%'\r\n\t\t\t},\r\n\t\t\tcolors : [{\r\n\t\t\t\tcolor : '#E9EEF0',\r\n\t\t\t\toffset : 0.0\r\n\t\t\t}, {\r\n\t\t\t\tcolor : '#25E9EEF0',\r\n\t\t\t\toffset : 1.0\r\n\t\t\t}]\r\n\t\t}\r\n\t});\r\n\r\n\tvar detail = Ti.UI.createView({\r\n\t\tlayout : 'vertical',\r\n\t\tleft : '3%',\r\n\t\tright : '3%',\r\n\t\theight : Ti.UI.SIZE,\r\n\t\thorizontalWrap : false,\r\n\t\ttop : 7,\r\n\t\tbackgroundColor : 'transparent'\r\n\t});\r\n\r\n\tif (data.image === 'Y') {\r\n\t\tinfoView.add(Ti.UI.createImageView({\r\n\t\t\timage : 'KS_nav_views.png',\r\n\t\t\theight : 80,\r\n\t\t\twidth : 80\r\n\t\t}));\r\n\t\tdetail.width = '65%';\r\n\t} else {\r\n\t\tdetail.width = '94%';\r\n\r\n\t}\r\n\tinfoView.add(detail);\r\n\r\n\tvar title = Titanium.UI.createLabel({\r\n\t\ttext : 'dfdfdfd fgffgfgg',\r\n\t\thorizontalWrap : true,\r\n\t\tfont : {\r\n\t\t\tfontSize : 15,\r\n\t\t\tfontWeight : 'bold'\r\n\t\t},\r\n\t\tcolor : 'black',\r\n\t\tleft : 0\r\n\t});\r\n\tdetail.add(title);\r\n\r\n\tif (data.isImg) {\r\n\t\tvar netImage = Ti.UI.createImageView({\r\n\t\t\tleft : 0,\r\n\t\t\timage : 'KS_nav_ui.png',\r\n\t\t\theight : Ti.UI.SIZE,\r\n\t\t\twidth : Ti.UI.SIZE,\r\n\t\t\ttop : 3,\r\n\t\t\tbottom : 3\r\n\t\t});\r\n\r\n\t\tdetail.add(netImage);\r\n\t}\r\n\r\n\tvar subTitle = Titanium.UI.createLabel({\r\n\t\ttext : 'fgfgfgfgfg',\r\n\t\thorizontalWrap : true,\r\n\t\tcolor : 'black',\r\n\t\tleft : 0,\r\n\t\tfont : {\r\n\t\t\tfontSize : 14\r\n\t\t}\r\n\t});\r\n\tdetail.add(subTitle);\r\n\r\n\tvar address = Titanium.UI.createLabel({\r\n\t\ttext : 'gfgfgfgf',\r\n\t\thorizontalWrap : true,\r\n\t\tcolor : 'black',\r\n\t\tleft : 0,\r\n\t\tfont : {\r\n\t\t\tfontSize : 14\r\n\t\t}\r\n\t});\r\n\tdetail.add(address);\r\n\tif (data.latitude !== null && data.longitude !== null) {\r\n\t\tvar map = Ti.UI.createView({\r\n\t\t\theight : Ti.UI.SIZE,\r\n\t\t\tlayout : 'horizontal',\r\n\t\t\tleft : 0,\r\n\t\t\ttop : 10,\r\n\t\t\tbottom : 10,\r\n\t\t\twidth : Ti.UI.SIZE\r\n\t\t});\r\n\r\n\t\tvar mapImage = Ti.UI.createImageView({\r\n\t\t\timage : 'map.png',\r\n\t\t\tleft : 0\r\n\t\t});\r\n\r\n\t\tvar mapLabel = Ti.UI.createLabel({\r\n\t\t\twidth : Ti.UI.SIZE,\r\n\t\t\ttext : 'See Map',\r\n\t\t\tfont : {\r\n\t\t\t\tfontSize : 14,\r\n\t\t\t\tfontWeight : 'bold'\r\n\t\t\t},\r\n\t\t\tleft : '7%',\r\n\t\t\tcolor : 'red'\r\n\t\t});\r\n\r\n\t\tmap.add(mapImage);\r\n\t\tmap.add(mapLabel);\r\n\t\tdetail.add(map);\r\n\r\n\t\tmap.addEventListener('click', function(e) {\r\n\t\t\talert('Clicked');\r\n\t\t});\r\n\r\n\t} else {\r\n\t\taddress.bottom = 10;\r\n\t}\r\n\t\r\n\tinfoRow.add(infoView);\r\n\tsection1.add(infoRow);\r\n\r\nvar section2 = Ti.UI.createTableViewSection({ headerTitle: 'Sample' });\r\n\r\nvar table = Ti.UI.createTableView({\r\n data: [section1, section2]\r\n});\r\n\r\nwin.add(table);\r\nwin.open();\r\n\r\n\r\nfor(i=1;i<=30;i++){\r\nsection2.add(Ti.UI.createTableViewRow({ title: 'Row '+i, height:50 }));\r\n}\r\n\r\n{code}\r\n\r\nh2. Steps to Reproduce\r\n1. Create a project with above sample code and run on android device\r\nNote : Notice that top row's height is not adjusted properly at first.\r\n2. Scroll the table view down and then again on top.\r\nNote : Now you will notice that height is adjusted as expected.\r\n\r\nExpected Result\r\nHeight of tableViewRow should be adjusted automatically on application launch\r\n\r\nActual Result\r\nHeight is not adjusted properly at first but after scrolling it gets adjusted", "attachment": [], "flagged": false, "summary": "Android:TableView Row height doesn't resize when multiple views are added", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android : 4.1.2\r\nDevice : Samsung S3\r\nSDK : 3.2.2, 3.2.1\r\nMac : 10.9.2", "closedSprints": [ { "id": 481, "state": "closed", "name": "2015 Sprint 18 SDK", "startDate": "2015-08-29T00:30:25.440Z", "endDate": "2015-09-12T00:30:00.000Z", "completeDate": "2015-09-14T05:24:05.135Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "321741", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\n\r\nTitanium SDK version 3.4.0 master, 3.2.2.GA\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Samsung Galaxy S3, Android version : 4.3", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-04T06:59:47.000+0000", "updated": "2014-09-04T06:59:47.000+0000" }, { "id": "360929", "author": { "name": "afailla", "key": "afailla", "displayName": "Alessio Failla", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@cng this also happens in the latest SDK+", "updateAuthor": { "name": "afailla", "key": "afailla", "displayName": "Alessio Failla", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-24T09:47:02.000+0000", "updated": "2015-08-24T09:47:26.000+0000" }, { "id": "361027", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Hi [~afailla]. Could you give more information and detail on what you are seeing? \r\nDevice information, screenshots and any other information would be very useful.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-08-25T04:12:41.000+0000", "updated": "2015-08-25T04:12:41.000+0000" }, { "id": "361065", "author": { "name": "afailla", "key": "afailla", "displayName": "Alessio Failla", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi @Ashraf Abu - I am going to upload a sample project.", "updateAuthor": { "name": "afailla", "key": "afailla", "displayName": "Alessio Failla", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-25T07:49:17.000+0000", "updated": "2015-08-25T07:49:43.000+0000" }, { "id": "361070", "author": { "name": "afailla", "key": "afailla", "displayName": "Alessio Failla", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces - see sample project here: https://www.dropbox.com/s/6o2v7zqjixqlmuk/TIMOB16707.zip?dl=0\r\n\r\nAppcelerator Studio, build: 4.1.1.201507141126\r\nCLI version 4.0.1\r\n\r\nTested on Nexus7 Android 4.1.1 but also able to replicate on any other Android device I have got such as S4, S5 and also on latest Android version.\r\n\r\nSteps to reproduce as described in the test case above.\r\nThanks", "updateAuthor": { "name": "afailla", "key": "afailla", "displayName": "Alessio Failla", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-25T08:09:51.000+0000", "updated": "2015-08-25T08:11:47.000+0000" }, { "id": "361072", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~afailla] Thank you for the sample project.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-08-25T08:12:44.000+0000", "updated": "2015-08-25T08:12:44.000+0000" }, { "id": "361650", "author": { "name": "afailla", "key": "afailla", "displayName": "Alessio Failla", "active": true, "timeZone": "America/Los_Angeles" }, "body": "When is Sprint 18? (I am guessing the fix will be something similar to https://github.com/appcelerator/titanium_mobile/commit/700cae1e338ca3e129488ece1fdc4f774f9d863f)", "updateAuthor": { "name": "afailla", "key": "afailla", "displayName": "Alessio Failla", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-29T07:35:56.000+0000", "updated": "2015-08-29T07:35:56.000+0000" }, { "id": "364352", "author": { "name": "afailla", "key": "afailla", "displayName": "Alessio Failla", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any ideas when this ticket will be resolved? Thank you!", "updateAuthor": { "name": "afailla", "key": "afailla", "displayName": "Alessio Failla", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-19T15:58:23.000+0000", "updated": "2015-09-19T15:58:23.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }