Welcome, Guest
Username Password: Remember me

Footer text clipped at one line
(1 viewing) (1) Guest

TOPIC: Footer text clipped at one line

Footer text clipped at one line 1 year, 8 months ago #1

I'm migrating a few tables over to SC tables as a test before we go too far with this API, and it's been very reasonable so far. However, for normal UITableView's the section footer automatically sizes to the text supplied. This behavior is not reproduced in SC. See below (basically instead of wrapping it gets the old... at the end of the first line).

I've tried using section.footerHeight but that does nothing (btw the documentation for this property is a copy paste of that for title).

I don't want to add my own view, and it feels like OOTB it should behave like a normal UITableView footer.

Any hints as to how I can work around this

Screen_shot_2010_09_06_at_19.png


Thanks in advance,

Alan
  • alansure
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0

Re: Footer text clipped at one line 1 year, 8 months ago #2

Hi Alan,

We were able to replicate your issue. We will fix this and send you a working version ASAP. Also, thank you very much for pointing out the documentation glitch.

Thanks again.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: Footer text clipped at one line 1 year, 8 months ago #3

Thanks for the quick response. Are you aware of any work around? I had hoped to get this out in our next submission which is scheduled for this week, and I thought this small table was a good test of how SC performed in the real world.
  • alansure
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0

Re: Footer text clipped at one line 1 year, 8 months ago #4

You should have the fixed version in less than 24 hours, so it's nothing to worry about too much.

Just to give you an insight on what's happening: in our last release, we added a new feature where Sensible TableView automatically detects the header and footer heights if you assign custom views to them. This feature seems to have created your issue as a side effect.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: Footer text clipped at one line 1 year, 8 months ago #5

I'm just looking at the code now (where it checks to see if there is a custom view, and changes the height to the height of the custom view if it's great than the height calculated).

The mistake you have made is that you return a constant (22) not [self.tableView sectionFooterHeight]; I've just made that change and it _seems_ to be working...

Screen_shot_2010_09_06_at_21.png
  • alansure
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0

Re: Footer text clipped at one line 1 year, 8 months ago #6

Ah no, that works because in my search for a workaround I had set the footer height for the table view directly.
  • alansure
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Time to create page: 0.91 seconds