The panel sets the dg height unless your code did. Try getExplicitOrMeasuredWidth and viewMetrics
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kPraveen Sent: Sunday, October 14, 2007 6:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Panel resize based on its contents Hi, I have a panel which is populated with dynamic number of datagrids inside. But the panel produces vertical scrollbars to view all the datagrids.I turned off the scrollbars, but data gets clipped off. But what i need is the panel to expand vertically without scrollbars so that i can see all the datagrids. Though i set panel.height=sum of all datagrids.height+25 its nt working. Plzz help me out on this.. -- View this message in context: http://www.nabble.com/Panel-resize-based-on-its-contents-tf4621724.html# a13198964 <http://www.nabble.com/Panel-resize-based-on-its-contents-tf4621724.html #a13198964> Sent from the FlexCoders mailing list archive at Nabble.com.