{ "id": "106374", "key": "TIMOB-12037", "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": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14811", "description": "2013 Sprint 01 API", "name": "2013 Sprint 01 API", "archived": true, "released": true, "releaseDate": "2013-01-14" }, { "id": "14804", "description": "2013 Sprint 01", "name": "2013 Sprint 01", "archived": true, "released": true, "releaseDate": "2013-01-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-03T07:13:56.000+0000", "created": "2012-12-12T17:55:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_label", "qe-review", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:32.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": "h1. Problem description\r\nThe value of a label - which is inside a TableViewRow - is changed using a slider; however, the size of the label is not updated, and iOS shows the ellipsis if the text is larger.\r\n\r\nh1. Steps to reproduce\r\nUse the following code:\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor : 'white',\r\n layout:'vertical'\r\n});\r\n\r\nslider1 = Ti.UI.createSlider({\r\n top : 30,\r\n value : 0,\r\n min : 0,\r\n max : 50000,\r\n left : 0,\r\n right : 0\r\n});\r\n\r\nslider1.addEventListener('touchend', function(e) {\r\n slider1Change(e);\r\n});\r\n\r\nslider1.addEventListener('touchcancel', function(e) {\r\n slider1Change(e);\r\n});\r\n\r\nfunction updatePerMonthLabel(_val) {\r\n row.label.text = _val;\r\n}\r\n\r\nfunction slider1Change(e) {\r\n updatePerMonthLabel(slider1.value);\r\n}\r\n\r\nvar row = Titanium.UI.createTableViewRow();\r\n\r\nvar horizontalView = Ti.UI.createView({\r\n layout : 'horizontal',\r\n left : '5%',\r\n right : '5%',\r\n height : Ti.UI.SIZE\r\n});\r\n\r\nvar amountLabel = Titanium.UI.createLabel({\r\n left:0,\r\n text:'$0',\r\n top : 0,\r\n width : Ti.UI.SIZE,\r\n height : Ti.UI.SIZE\r\n});\r\n\r\nvar yrLabel = Titanium.UI.createLabel({\r\n width : Ti.UI.SIZE,\r\n height : Ti.UI.SIZE,\r\n text : \"Year\",\r\n left : 10\r\n});\r\n\r\nhorizontalView.add(amountLabel);\r\nrow.label = amountLabel;\r\nhorizontalView.add(yrLabel);\r\n\r\namountLabel = null;\r\nyrLabel = null;\r\n\r\nrow.add(horizontalView);\r\n\r\nvar mainContentTableView = Titanium.UI.createTableView({\r\n data : [row]\r\n});\r\n\r\nwin.add(slider1);\r\nwin.add(mainContentTableView)\r\nwin.open();\r\n{code}\r\n\r\nIn the beginning, everything looks ok. Moving the slider, though, will not update the size of the label, and ellipsis are shown. Moving the slide back to zero, or clicking the row solves the issue for the following changes.", "attachment": [], "flagged": false, "summary": "iOS: label inside a table is not updated correctly", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS 6\r\nSDK 2.1.0\r\nSDK 2.1.3\r\nSDK 2.1.4\r\nSDK 3.0.0", "comment": { "comments": [ { "id": "232895", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/3652", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-02T19:15:00.000+0000", "updated": "2013-01-02T19:15:00.000+0000" }, { "id": "233575", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backports\n3_0_X https://github.com/appcelerator/titanium_mobile/pull/3677\n2_1_X https://github.com/appcelerator/titanium_mobile/pull/3676", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-08T12:43:09.000+0000", "updated": "2013-01-08T12:43:09.000+0000" }, { "id": "233663", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified in the following environment:\r\nTitanium SDK: 3.1.0.v20130105233407\r\nTitanium SDK:3.0.1.v20130108154840\r\nTitanium  Studio:3.0.1.201212181159\r\nDevice: Simulator iOS 6.0", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-09T03:54:10.000+0000", "updated": "2013-01-09T03:54:10.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }