{ "id": "94947", "key": "TIMOB-9942", "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": "13573", "description": "Sprint 2012-15 API", "name": "Sprint 2012-15 API", "archived": true, "released": true, "releaseDate": "2012-07-30" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-07-17T16:21:44.000+0000", "created": "2012-07-11T14:46:20.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-13T19:00:39.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": "Run the sample code below.\r\nExpected behavior: The \"close\" button shows up in the navigation bar.\r\nActual behavior: The \"close\" button does not show up unless the height property of that button is set.\r\n\r\n{code}\r\n\tvar win = Ti.UI.createWindow({\r\n\t\tbackgroundColor:'#ffffff'\r\n\t});\r\n\t\t\r\n\t\r\n\tvar object = { parentView:Ti.UI.createView({ left:10, right:10, top:10, bottom:10, opacity:0.0 }) };\r\n\tvar outScale = Ti.UI.create2DMatrix().scale(0.1);\r\n\tvar inScale = Ti.UI.create2DMatrix().scale(1.0);\r\n\r\n\tvar contentContainer = Ti.UI.createView({ left:20, right:20, top:20, bottom:20, borderRadius:10 });\r\n\tvar navBar = Ti.UI.createView({ top:0, left:0, right:0, height:44});\r\n\t\r\n\tvar navCloseBtn = Ti.UI.createButton({ right:10, width:58, backgroundImage:'ad-bar-close-btn.png' });\r\n\t\r\n\t//walk around with height property being set.\r\n\t//var navCloseBtn = Ti.UI.createButton({ right:10, width:58,height:41, backgroundImage:'ad-bar-close-btn.png' });\r\n\r\n\tvar title = Ti.UI.createLabel({ text:\"title\", color:'#333', left:20, top:3, height:41 });\r\n\r\n\tobject.parentView.transform = outScale;\r\n\r\n\tnavBar.add(title);\r\n\tnavBar.add(navCloseBtn);\r\n\r\n\tobject.controllers = {\r\n\t\t\tshow: function() {\r\n\t\t\t\twin.add(object.parentView);\r\n\r\n\t\t\t\tobject.parentView.animate({ transform:inScale, opacity:1.0, duration:250 }, function(e) {\t\t\t\t\t\r\n\t\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t};\r\n\r\n\tcontentContainer.add(navBar);\r\n\tobject.parentView.add(contentContainer);\r\n\twin.add(object.parentView);\r\n\t\r\n\tobject.controllers.show();\r\n\t\r\n\twin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "animation and opacity prevents the button with backgroundImage from being showed correctly", "creator": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS5.1 simulator", "comment": { "comments": [ { "id": "208199", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In 1_8_X undefined height followed fill behavior on buttons, since 2_0_X undefined height follows size behavior. \r\nTo return to 1_8_X behavior explicitly set \r\n{code}\r\n//ie.height:Ti.UI.FILL\r\nvar navCloseBtn = Ti.UI.createButton({ right:10, width:58, backgroundImage:'default_app_logo.png',height:Ti.UI.FILL });\r\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-17T16:21:44.000+0000", "updated": "2012-07-17T16:21:44.000+0000" }, { "id": "229714", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Invalid test case", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T00:02:29.000+0000", "updated": "2012-12-04T00:02:29.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }