Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7659] iOS: backgroundSelectedImage does not scale in iPod 2nd gen

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-03-05T11:32:51.000+0000
Affected Version/sRelease 1.7.5, Release 1.8.0.1
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterNikhil Sharma
AssigneeMax Stepanov
Created2012-02-15T00:37:13.000+0000
Updated2017-03-09T22:39:49.000+0000

Description

The backgroundSelectedImage property doesn't scale in iPod 2nd gen. You can only see a cropped image. The image scales fine in iPod 3rd gen.

Repro Steps

1. Run the below code. 2. In iPod 2nd gen the images will not scale
var win=Ti.UI.createWindow({ 
backgroundColor: 'white' 
});

var button = Titanium.UI.createButton({ backgroundImage:'appsS.png', backgroundSelectedImage:'appsP.png', top: Titanium.Platform.displayCaps.platformHeight*0.5, width: Titanium.Platform.displayCaps.platformHeight * 0.13, height: Titanium.Platform.displayCaps.platformHeight * 0.16 });

button.addEventListener('click',function(e){ 
Titanium.API.info("You clicked the button"); 
});

win.add(button);
win.open();

Attachments

FileDateSize
appsP.png2012-02-15T00:37:13.000+0000108287
appsS.png2012-02-29T13:36:56.000+000098662

Comments

  1. Max Stepanov 2012-03-05

    Unable to reproduce on iPhone 3GS (4.3) with 1.7.5, 1.8.2 or master branch (2.0.0). On 1.8.0.1 the background image is never shown due to other bug. Nikhil, could you please retest the issue with the recent 1.8.2 release to see if it's still there. Thanks!
  2. Stephen Tramer 2012-03-05

    Max - This bug specifically mentions it affects iPod 2nd gen touch only. All testing should be done on this device, although we very likely do not have one available.
  3. Lee Morris 2017-03-09

    Closing ticket as the issue cannot be reproduced.

JSON Source