fossasia / susi_iOS

SUSI AI iOS app http://susi.ai
Apache License 2.0
1.87k stars 139 forks source link

Like Dislike Button Fixed #513

Closed raghavbabbar closed 5 years ago

raghavbabbar commented 5 years ago

512 fix

Problem: User is not able to hit like and dislike button when the cell appear first time. As Content view is not getting proper height . (Try initialising cell with clips to bounds to true).

Changes: I gave tableviewcell View and ContentView correct height while layouting subviews

jogendra commented 5 years ago

@raghavbabbar Please squash the commits.

raghavbabbar commented 5 years ago

updatedHeight is defined as a constant and yet below constant values are added to it? Why is that?

Hi @chashmeetsingh i did same thing that is being done in delegate method of size for row at. i dont know why we have not used autolayout Things would be easy!!

chashmeetsingh commented 5 years ago

I suppose we can switch to that view by view. I will merge this PR for now.