PDA

View Full Version : How to get a parent's height?



fredcn
23 Aug 2009, 6:03 PM
I got a panel whose height is calculated by a LayoutManager ,two panels in it ,one is on top ,and one is at the bottom ,i want each one got half height of the parent panel.
how to do this?:-/
thx!

Animal
23 Aug 2009, 9:32 PM
YOU do not perform any of these calculations. This is what the layout config is FOR.

Configure that Panel with



layout: {
type: 'vbox',
align: 'stretch'
}


And each of the two child items with



flex: 1

fredcn
25 Aug 2009, 1:10 AM
YOU do not perform any of these calculations. This is what the layout config is FOR.

Configure that Panel with



layout: {
type: 'vbox',
align: 'stretch'
}


And each of the two child items with



flex: 1

=D>thx again !