PDA

View Full Version : getHeight returns 0 on afterRender event



pinidbest
5 Jun 2012, 1:51 AM
Hi all,
I have a panel that its only item is being built during the after render event.
I need to get the height of the panel in order to create my controll and add it to the panel.
I am using fit layout and still cant get the height which always returns 0.

Any idea?

friend
5 Jun 2012, 3:32 AM
Note that a parent container with a layout of 'fit' will attempt to automatically size its child component to use all available space. This may be related to your problem.

pinidbest
5 Jun 2012, 4:08 AM
Already tried tried it.didnt work