4 Replies Latest reply on Sep 3, 2010 1:18 PM by Flex harUI

    Calculating a Panel header height

    SiHoop Level 1

      I'm trying to calculate the height of a Panel header. The Flex language reference includes a method getHeaderHeight(), but I cannot use it (see the trace statement below). Is there another way to calculate the header height?

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600" creationComplete="init()">
          <mx:Script>
              <![CDATA[
                  private function init():void{
                      //trace("Header height="+panel.getHeaderHeight())
                  }
              ]]>
          </mx:Script>
          <mx:Panel  id="panel" width="249" height="213"/>
      </mx:Application>