6 Replies Latest reply on May 19, 2010 8:40 AM by dtssagio

    Layoutdirection default in SDK


      Hi to all,

      I'm trying a simple example with the new layoutdirection property. The example consists in a simple application with a button calling the popupmanager to show an empty popup.

      This is the button:


      <mx:Button click="createPopUP()" >

      And this is the function:

      private function createPopUP():void
                      var win:Dialog = PopUpManager.createPopUp(this, Dialog, true) as Dialog;


      The Dialog component is a very simple empty TitleWindow:


      <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
                      title="More information"



      I noticed that while main window layout is ltr, the popup seems to be rtl, how is it possible??

      Is the default for popup setted in some way to rtl?

      If I want ltr behaviour on popup I have to explicitly add a layoutDirection declaration on the application:

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layoutDirection="ltr">

      This is not good since I want backward compatibility...

      Is this a bug??

      Is there a way to set the default layoutdirection in the compiler?


      Thanks in advance

      Giorgio Grillini