PDA

View Full Version : Grid height possible bug?



mortenoh
21 Sep 2017, 9:57 AM
This is probably not a bug, just me not getting the container things, but when I do:


<Panel flex={1} shadow title="Panel" padding={10} margin={5}>
<Grid store={store} flex={1}>
<Column text="Name" dataIndex="name" flex="1"/>
<Column text="Email" dataIndex="email" flex="1"/>
<Column text="Phone" dataIndex="phone" flex="1"/>
</Grid>
</Panel>


The grid does not appear... I need to add height=100%"


<Panel flex={1} shadow title="Panel" padding={10} margin={5}>
<Grid store={store} flex={1} height="100%">
<Column text="Name" dataIndex="name" flex="1"/>
<Column text="Email" dataIndex="email" flex="1"/>
<Column text="Phone" dataIndex="phone" flex="1"/>
</Grid>
</Panel>



Is this the expected behaviour ?

Animal
26 Sep 2017, 1:03 AM
Why are you putting a grid inside a panel?