Titanium Community Questions & Answer Archive

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

Grouped TableView 'auto' width + scrolling = problems

Whenever I have a grouped TableView with enough content that it requires scrolling, I run into problems with the padding of the rows changing as they're scrolled in and out of view. The following image highlights the problem (notice the alignment of the bottom 4 rows):
http://img210.imageshack.us/img210/1198/centered.png

Full code to run the application is here (only about 90 lines):
http://pastie.org/1054419

Steps:

  1. Scroll to the bottom of the window.
  2. Scroll back to the top of the window.
  3. Any rows that couldn't fit into the display when you did #2 will now be incorrectly aligned. (It helps if you scroll a little bit beyond the top, so that the view bounces back into place)

Note that this problem seems to be linked to using 'auto' for the row width. If you explicitly specify a width and leave out the 'right' padding for the row, it behaves fine. But then you can't support landscape view.

I am using 1.3.2 and iPhone SDK 4.0.

— asked July 21st 2010 by Mike Dosey
  • 1.3.2
  • 4.0
  • auto
  • bug
  • grouped
  • iphone
  • mobile
  • scrolling
  • table
  • view
  • width
1 Comment
  • I have exact same problem, did u fix it? And if you did, can u show me how?

    — commented June 24th 2014 by Vinh Tran Quang

3 Answers

  • Can anyone else confirm this?

    — answered July 23rd 2010 by Mike Dosey
    permalink
    0 Comments
  • Why are more people not complaining about this? I truly do not understand. Are people not using padding on their rows, or just not supporting landscape view?

    — answered December 11th 2010 by Mike Dosey
    permalink
    0 Comments
  • 25

    — answered June 19th 2012 by Bill Freedman
    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.