Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Disabling button image/backgroundImage scaling

Hello,

Is there a way to disable image scaling?
Say, my image is 32x32, but the button is 48x48 for bigger hit target. How do I make sure the image doesn't scale and is centered in the button?
Do I really have to make my image bigger by adding to its borders??

— asked August 4th 2010 by Vitaly Kravchenko
  • button
  • image
  • scaling
0 Comments

3 Answers

  • I have the same question. Could someone help?

    — answered November 22nd 2010 by Mario Müller
    permalink
    0 Comments
  • I am new to this also, but as a suggestion, you could have a button that is 48x48 that contains an imageView sized to 32x32. That way you can set the hit target to be the outer enclosure instead of the imageView

    — answered October 29th 2011 by Ash Connell
    permalink
    0 Comments
  • Still no answer? This is very sad to see.

    — answered February 25th 2013 by Tommy Bergeron
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.