table view auto size row height functionality

This commit is contained in:
Carlin Isaacson
2014-11-25 11:25:27 -08:00
parent 6f8d2ea573
commit 1178a39356
6 changed files with 35 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ class TestTableScreen < ProMotion::TableScreen
attr_accessor :tap_counter, :cell_was_deleted, :got_index_path
title 'Test title'
tab_bar_item title: 'Test tab title', item: 'test'
row_height :auto, estimated: 97
def on_load
self.tap_counter = 0

View File

@@ -1,4 +1,6 @@
class UpdateTestTableScreen < PM::TableScreen
row_height 77
def table_data; @table_data ||= []; end
def on_load
@table_data = [{cells: []}]