[TIMOB-5803] iOS: Button background image does not scale correctly on click
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-11-22T11:50:50.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.8.0 |
Components | iOS |
Labels | dr-heatmap-other, module_button, qe-testadded |
Reporter | Shauna |
Assignee | Vishal Duggal |
Created | 2011-10-11T11:47:13.000+0000 |
Updated | 2012-03-23T07:32:16.000+0000 |
Description
When the image used by a button is larger than the size of the button, the image will correctly scale down to fit the button when the button is in the normal state. However, when the button is in the "pressed" state, the backgroundImage no longer scales correctly.
var win = Titanium.UI.currentWindow;
var button = Titanium.UI.createButton({
height:60,
width:80,
backgroundImage:'slightlylargerimage.png'
});
win.add(button);
Attachments
File | Date | Size |
---|---|---|
clicked.png | 2011-10-11T11:47:13.000+0000 | 4291 |
notclicked.png | 2011-10-11T11:47:13.000+0000 | 6910 |
slightlylargerimage.png | 2011-10-12T04:07:42.000+0000 | 1609 |
Hi Shauna Thank you for raising this ticket. If you are able to provide all the information described in the [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist) guidelines, *in the correct fields and using the right format*, we will be able to raise it with the core team. Thanks in advance.
Thanks for the link, Paul. I've updated my ticket accordingly.
Pull pending #584
Confirmed fix, tested both iOS & Android (for parity check). Most of the time was taken up getting an android setup working.
Tested with 1.8.0.1.v20111114102656 on iPad 2 (4.3.5) iPod Touch (4.0.2) iPhone 4s (5.0) Xoom 3.2.1
open to add label