Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12397] IOS: Label inside a button does not show

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-01-29T08:26:05.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sRelease 3.0.2, Release 3.1.0, 2013 Sprint 02 API, 2013 Sprint 02
ComponentsiOS
Labelsapi, module_button, qe-testadded, regression
ReporterVishal Duggal
AssigneeVishal Duggal
Created2013-01-23T19:27:43.000+0000
Updated2013-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

FileDateSize
blue.png2013-01-23T19:28:38.000+00002133

Comments

  1. Vishal Duggal 2013-01-23

    Attaching resource for test code
  2. Vishal Duggal 2013-01-23

    master PR https://github.com/appcelerator/titanium_mobile/pull/3769 Backport PR https://github.com/appcelerator/titanium_mobile/pull/3770
  3. Vishal Duggal 2013-01-23

    Note to QE. When closing this ticket please also close TIMOB-7841
  4. Anshu Mittal 2013-01-29

    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.
  5. Anshu Mittal 2013-01-29

    Reopening to update labels

JSON Source