Sorry, I should have been clearer. You should use a TablePane instead of a Form - a Form does not stretch its contents to fill the available space, whereas a TablePane will. G
On Nov 27, 2010, at 11:10 AM, Azubuko Obele wrote: > I tried using a TablePane.Row with a 1* height. Will a TablePane > actually grow when it's part of a Form? It seems to grow elsewhere but > not when it's part of a Form... > > On Sat, Nov 27, 2010 at 9:17 AM, Greg Brown <[email protected]> wrote: >> Forms don't stretch to fill the available space. TablePane is probably the >> right approach here. >> >> On Nov 27, 2010, at 4:06 AM, Bojan Vučinić wrote: >> >>> Hi ocean, >>> >>> I had a similar problem, solved by putting it in aTablePane with row height >>> "1*", i.e. >>> <TablePane.Row height="1*"> >>> Best regards, >>> bojan >>> >>> >>> ocean ocean said the following on 27/11/2010 06:08: >>>> >>>> Hello all, >>>> >>>> I've got a very basic form: a textinput on top of a table. It looks like: >>>> >>>> >>>> <Form styles="{fill:true}"> >>>> <sections> >>>> <Form.Section> >>>> <TextInput wtkx:id="tagText" Form.label="Tag" textKey="text" /> >>>> >>>> <Border> >>>> <content> >>>> <ScrollPane >>>> horizontalScrollBarPolicy="fill_to_capacity" >>>> verticalScrollBarPolicy="fill_to_capacity" > >>>> <view> >>>> <TableView wtkx:id="tagsTable" >>>> styles="{includeTrailingVerticalGridLine:true}" > >>>> <columns> >>>> <TableView.Column width="1*" name="text" headerData="Tags" /> >>>> </columns> >>>> </TableView> >>>> </view> >>>> >>>> <columnHeader> >>>> <TableViewHeader tableView="$tagsTable" sortMode="single_column" /> >>>> </columnHeader> >>>> </ScrollPane> >>>> >>>> </content> >>>> </Border> >>>> >>>> </Form.Section> >>>> </sections> >>>> </Form> >>>> >>>> It seems like no matter what I do, I can't get the table to grow >>>> vertically to fill up the form. I've tried putting the scrollpane in a >>>> BoxPane set to fill with an orientation of vertical, I've tried putting it >>>> in a BorderPane, and I've tried putting it in a 1-row, 1-column tablepane. >>>> Any ideas? It's not clear to me which layouts actually grow to fill up all >>>> available space and which don't. Any ideas here? >> >>
