1 Reply Latest reply on May 30, 2011 7:24 PM by Shongrunden

    Flex mobile : this.navigator.height return "0" when the view are initialized

    pol2095 Level 1

      Hello,

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" 
      xmlns:s="library://ns.adobe.com/flex/spark" title="Test" initialize="comp(event)">
       <fx:Script>
              <![CDATA[ 
       public function comp(e:Event):void {
        inp.text=String(this.navigator.height);
       }
       ]]>
       </fx:Script>
       <s:Scroller>
        <s:VGroup paddingLeft="15" paddingTop="10">
         <s:TextInput width="400" id="inp"/>
        </s:VGroup>
       </s:Scroller>
      </s:View>
      

       


      this.navigator.height return "0" when the view are initialized

       

      Thanks