Forum Archive

ui module TableView resizing problem.

JadedTuna

My tableview is not getting automatically resized. What am I doing wrong?

import ui

view = ui.View(name="Choose release")
table = ui.TableView(flex="WH")
lst = ui.ListDataSource(["v1.0.1", "v1.0"])
table.data_source = lst
view.add_subview(table)
view.present("sheet")
ccc

table.flex="WH" will do it. You can not pass flex into the init() method.

JadedTuna

@ccc, thanks. It was so simple :)