PDA

View Full Version : Resizing parent container


ysbelman
03-22-2009, 03:13 AM
Hi. How can i resize a parent container when my children grow (new added, or content grows due to repeater)?

|------Panel 1------| height 100%
|-|-- component1--|-| height 80
|-|-- component2--|-| height 120


When i add component3, i want Panel1 to be notified of the change, calculate the new appropriate size, and then resize it from some handler function.

Sekhar
03-23-2009, 11:09 PM
You could listen for the childAdd event (triggers when a child is added).