{ "id": "63089", "key": "TIMOB-2457", "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": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T03:20:17.000+0000", "created": "2011-04-15T03:20:16.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "button", "ios", "label" ], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T21:37:08.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}
Hi,
\nI'm creating an app for iPad, tested in 3.2.2 and 4.2.1
\nI use a custom button to create an iPhone style button.
\nvar btn = Ti.UI.createButton({\n backgroundImage:'img/btn.png',\n backgroundSelectedImage:'img/btn_o.png',\n height:57,\n width:200\n });\nvar lblBtn = Ti.UI.createLabel({\n color:'#fff',\n font:{fontSize:12,fontWeight:'bold'},\n shadowColor:'#000',\n shadowOffset:{x:1,y:1},\n right:0,\n left:0,\n height:'auto',\n text:'My button',\n textAlign:'center'\n })\nbtn.add(lblBtn);
\n
\nThis code reproduce a button with a title with shaddow. This\nwork perfectly in 1.4.3, but NOT in 1.5.0.
\nIf my image is opaque i don't see this label, but if has an\nopacity, i see the label below the backgroundImage.
Hi, i teste the final version of 1.5.0 and now this was\ncorrected.
Adriano
\nYou should not add a label to a button. Create a view and add\nboth the button and label to it.
\nStephen - for the above reasons, can this ticket be marked as\ninvalid?
Yes, this ticket can be marked as invalid.
\nThanks!
Marking invalid, as above.