[TIMOB-12397] IOS: Label inside a button does not show
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-01-29T08:26:05.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | Release 3.0.2, Release 3.1.0, 2013 Sprint 02 API, 2013 Sprint 02 |
Components | iOS |
Labels | api, module_button, qe-testadded, regression |
Reporter | Vishal Duggal |
Assignee | Vishal Duggal |
Created | 2013-01-23T19:27:43.000+0000 |
Updated | 2013-01-29T08:26:05.000+0000 |
Description
Use this code to test. The label never shows up. Affects master and 3_0_X CI. Works in 3.0.0 GA
var win = Ti.UI.createWindow({
backgroundColor:"white"
});
var button = Ti.UI.createButton({
width:200,
height:200,
enabled:true,
backgroundImage:"blue.png",
backgroundColor:"red"
})
var btnLabel = Ti.UI.createLabel({
text:"I am button",
backgroundColor:"green"
})
button.add(btnLabel);
win.add(button);
win.open();
Attachments
File | Date | Size |
---|---|---|
blue.png | 2013-01-23T19:28:38.000+0000 | 2133 |
Attaching resource for test code
master PR https://github.com/appcelerator/titanium_mobile/pull/3769 Backport PR https://github.com/appcelerator/titanium_mobile/pull/3770
Note to QE. When closing this ticket please also close TIMOB-7841
Tested with: SDK:3.1.0.v20130128172329,3.0.2.v20130128174806 Studio:3.0.2.201301251115 device: iPhone3Gs(v 5.0.1) label inside a button is displayed properly.
Reopening to update labels