Titanium Community Questions & Answer Archive

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

Table row background image

How do I stop a background image being stretched to fit a row with height set to auto? I'm trying keep the background image aligned to the top without distorting it.

Here's a screenshot of the problem.

alt text

— asked March 22nd 2010 by Phi Chong
  • iphone
  • row
  • table
  • titanium.ui.tableviewrow

1 Answer

  • Accepted Answer

    the background image will always stretch to fill it's contents.

    to do what you're asking, you might just create a view that has the backgroundImage and then just add your tableview views to it and then just add that view to your row.

    — answered March 22nd 2010 by Jeff Haynie
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.