Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6644] iOS: Button - setting backgroundImage causes the button not provide visual feedback when it is clicked

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-23T17:00:35.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-51, Release 2.0.0, Release 1.8.1
ComponentsiOS
Labelsqe-testadded, regression
ReporterJon Alter
AssigneeVishal Duggal
Created2011-12-13T14:12:22.000+0000
Updated2012-02-02T11:11:47.000+0000

Description

Ti.UI.Button does not give feedback that it is being clicked if it has backgroundImage set. It was working in 1.7.5 but is not working in 1.8.0.1 RC1 Step 1: add the attached image to your Resources folder Step 2: run the code below Step 3: click the button Step 4: notice that that button does not give any feedback that it is being clicked
var win = Ti.UI.createWindow({backgroundColor:'#fff'});

var share = Ti.UI.createButton({
	// title: 'Share',
	top: 50,
	left: 50,
	width: 130,
	height: 35,
	backgroundImage:'share.png'
});
win.add(share);

win.open();

Attachments

FileDateSize
share.png2011-12-13T14:12:22.000+00004094

Comments

  1. Stephen Tramer 2011-12-13

    When resolving this issue, check to see if TIMOB-6580 is also resolved.
  2. Vishal Duggal 2011-12-19

    Pull pending. #1059
  3. Natalie Huynh 2012-01-12

    Tested with 1.9.0.v20120112104633 with iPod 4.3.3

JSON Source