mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-04-30 13:12:19 +08:00
table view auto size row height functionality
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
class UpdateTestTableScreen < PM::TableScreen
|
||||
row_height 77
|
||||
|
||||
def table_data; @table_data ||= []; end
|
||||
def on_load
|
||||
@table_data = [{cells: []}]
|
||||
|
||||
Reference in New Issue
Block a user