Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5803] iOS: Button background image does not scale correctly on click

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-11-22T11:50:50.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.8.0
ComponentsiOS
Labelsdr-heatmap-other, module_button, qe-testadded
ReporterShauna
AssigneeVishal Duggal
Created2011-10-11T11:47:13.000+0000
Updated2012-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

FileDateSize
clicked.png2011-10-11T11:47:13.000+00004291
notclicked.png2011-10-11T11:47:13.000+00006910
slightlylargerimage.png2011-10-12T04:07:42.000+00001609

Comments

  1. Paul Dowsett 2011-10-11

    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.
  2. Shauna 2011-10-12

    Thanks for the link, Paul. I've updated my ticket accordingly.
  3. Vishal Duggal 2011-10-25

    Pull pending #584
  4. Stephen Tramer 2011-10-31

    Confirmed fix, tested both iOS & Android (for parity check). Most of the time was taken up getting an android setup working.
  5. Natalie Huynh 2011-11-14

    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
  6. Natalie Huynh 2011-11-22

    open to add label

JSON Source