{ "id": "89274", "key": "TIMOB-8451", "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": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13207", "name": "Sprint 2012-07", "archived": true, "released": true, "releaseDate": "2012-04-08" }, { "id": "13270", "description": "Release 1.8 Service Pack 3 (CI for 1_8_X)", "name": "Release 1.8.3", "archived": true, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-05T12:26:15.000+0000", "created": "2012-03-30T12:00:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_views", "qe-manualtest" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-08T21:26:09.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Problem Description\r\nThe customer is trying to modify the view's border width as the user's interact with it, and it never changes.\r\n\r\nh4. Actual results\r\nthe view's border width doesn't change\r\n\r\nh4. EXpected results \r\nbeing able to modify the view's border width as needed.\r\n\r\nh4. Test case.\r\n1. Create a new mobile project for android\r\n2. Paste this code in app.js\r\n{code}\r\nvar win1=Ti.UI.createWindow({\r\n layout:'vertical',\r\n backgroundColor:'gray',\r\n exitOnClose:true,\r\n navBarHidden:true\r\n });\r\n\r\nvar MyBox=Ti.UI.createView({height:310,\r\n width:310,\r\n backgroundColor:'white',\r\n borderWidth:2,\r\n borderColor:'silver',\r\n top:30\r\n });\r\nvar TheLabel=Ti.UI.createLabel({\r\n color:'black',\r\n text:'View border width should double when clicked',\r\n width:'auto'\r\n });\r\nMyBox.add(TheLabel);\r\n\r\nfunction BiggerBorder()\r\n{\r\n MyBox.borderWidth*=2;\r\n MyBox.borderColor='red';\r\n Ti.API.info('MyBox.borderWidth expanded to '+MyBox.borderWidth);\r\n} \r\nMyBox.addEventListener('click',BiggerBorder);\r\nwin1.add(MyBox);\r\n\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: You can't modify the view border multiple times", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 1.8.2/2.0 \r\nJavascript Engine: V8 \r\nPlatform & version: Android 2.2 \r\nDevice Details: Android emulator \r\nHost Operating System: OSX 10.7.3 \r\nTitanium Studio version: 1.0.9", "comment": { "comments": [ { "id": "189310", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Clarification: The borderWidth *never* changes, even the first time BiggerBorder() is called. The borderColor *does* change the first time, to prove that the routine is being executed.\r\n\r\nHD ticket: https://support.appcelerator.com/tickets/APP-121747", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-30T12:08:15.000+0000", "updated": "2012-03-30T12:08:15.000+0000" }, { "id": "189311", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Shawn,\r\n\r\nthanks for the clarification. Excuse my bad sight ;)\r\n\r\nBest,\r\n\r\nMauro", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-03-30T12:10:43.000+0000", "updated": "2012-03-30T12:10:43.000+0000" }, { "id": "191323", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Verified fixed in SDK 2.1.0.v20120416160358. Thanks!\r\n", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-17T06:43:31.000+0000", "updated": "2012-04-17T06:43:31.000+0000" }, { "id": "194192", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.2.v201205151714 on Nexus One 2.2.2", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-08T14:50:34.000+0000", "updated": "2012-05-08T14:50:34.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }