0 Replies Latest reply on Sep 20, 2006 11:43 PM by allnighter

    how to dynamically resize a display component to avoid vertical scroll bars?

    allnighter
      Hi,

      I have a Flex 2 chart embedded within my html page. I have a hard coded height and width for the object tag. The problem is that my Flex 2 chart application is created dynamically based on the meta-data and as such may or may not be bigger in size than the size that I have set. In such cases, Flex shows the scroll bar.

      On creationComplete, I want to be able to detect the true size of the flex app i.e size that includes both the view area and the area that is hidden but scrollable. I have tried height, width, verticalScrollBar.maxHeight etc. but none of them give me the height and width of the whole app. Is there a way to get that in ActionScript?

      Thank you,

      AN