New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table view auto size row height functionality #574
Conversation
👍 |
@@ -255,6 +263,16 @@ def table_style | |||
UITableViewStylePlain | |||
end | |||
|
|||
def row_height(height, args={}) | |||
height = UITableViewAutomaticDimension if height == :auto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd clean this up a bit.
if height == :auto
height = UITableViewAutomaticDimension
else
args[:estimated] ||= height
end
@row_height = { height: height, estimated: args[:estimated] || 44 }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is really cleaner.
👍 |
…-cell Table view auto size row height functionality
Thanks @carlinisaacson ! |
@carlinisaacson Can you update the wiki please? |
@carlinisaacson ^^ bump |
Per issue #553
row_height(height, args={})
Class method that sets the screen's table row height.