alekseyn / EasyTableView

Horizontal and vertical scrolling table views for iOS
BSD 3-Clause "New" or "Revised" License
584 stars 157 forks source link

Vertically Resizing a Horizontal EasyTable #11

Closed timelapse84 closed 12 years ago

timelapse84 commented 12 years ago

Hi

I have a Horizontal EasyTable bar added to the bottom of my view. The calendar control at the top of the view can resize in certain situations and I'd like the EasyTable to resize too.

I've gone round adding resizesSubviews to everything I can find but still when the cal control grows, the top of the cells in my EasyTable become hidden by the other control (despite the AutoResizeMasks on the EasyTable being set).

Do you have any idea how to make the cells resize when the EasyTable is resized like this?

Many thanks

alekseyn commented 12 years ago

There may be a problem in certain situations auto-resizing the height of a horizontal EasyTableView. I would recommend a fixed height. However, if you post some sample code I may be able to suggest a solution.

timelapse84 commented 12 years ago

Hi there

Thanks for your help

I figured out that the issue was the reusableCell getting reused with the old height. My solution was to append the height to the reuse identifier. This works but snaps rather than animates.

The problem with enabling the animation is that because the horizontal table is transformed you see the cells resize but they spin as the transform is applied.

Any ideas?

Thanks Tony

Sent from my mobile device

On 24 Feb 2012, at 07:17, Aleksey Novicov reply@reply.github.com wrote:

There may be a problem in certain situations auto-resizing the height of a horizontal EasyTableView. I would recommend a fixed height. However, if you post some sample code I may be able to suggest a solution.


Reply to this email directly or view it on GitHub: https://github.com/alekseyn/EasyTableView/issues/11#issuecomment-4152669

alekseyn commented 12 years ago

If you had some sample code for me to look at I could help. Is there a way to distill your code down to a simple example that demonstrates the issue?

Is the problem that you simply want the height of a horizontal EasyTableView to auto-resize? I remember that being one of the corner conditions I was not able to fully resolve with this technique. But I will look at it again.