Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6580] iOS: backgroundSelectedImage does not work on Button component

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2012-02-10T00:19:19.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sn/a
ComponentsiOS
Labelsregression
ReporterKarol Pomaski
AssigneeMax Stepanov
Created2011-12-12T14:42:40.000+0000
Updated2012-02-10T00:19:19.000+0000

Description

Problem

BackgroundSelectedImage does not work on Button component.

REGRESSION! - works fine with SDK 1.7.5

Steps

1. Run the code from above 2. Click the button

Sample Code

// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');


var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});


var button = Ti.UI.createButton({
	backgroundImage: 'call.png',
	backgroundSelectedImage: 'settings.png',
	color: '#fff',
	 height: 30, width: 100, top: 45, left: 5, 
});



win1.add(button);
win1.open();

Comments

  1. Stephen Tramer 2011-12-13

    Any fixes for this issue (or for TIMOB-6644) should be checked to see if they resolve the other.
  2. Max Stepanov 2012-01-10

    Reproduced with 1.8.0.1 and 1.9.0 releases, but not on master branch. Probably needs back-porting.
  3. Max Stepanov 2012-01-10

    Verified to be fixed by TIMOB-6644

JSON Source