[TIMOB-7659] iOS: backgroundSelectedImage does not scale in iPod 2nd gen
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-03-05T11:32:51.000+0000 |
Affected Version/s | Release 1.7.5, Release 1.8.0.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Nikhil Sharma |
Assignee | Max Stepanov |
Created | 2012-02-15T00:37:13.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
appsP.png | 2012-02-15T00:37:13.000+0000 | 108287 |
appsS.png | 2012-02-29T13:36:56.000+0000 | 98662 |
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!
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.
Closing ticket as the issue cannot be reproduced.