1 Reply Latest reply on Sep 1, 2009 11:32 PM by Flex harUI

    How to measure a menu before it is shown?

    crissy84

      Hi,

      Probably a dumb question.. but... I create a menu like this: Menu.createMenu().  I will then do menu.show(x,y).  My x & y will depend on the size of the menu that is to be shown because I need to make sure it doesn't flow off the bottom or right sides of the screen.  But width & height of the menu object are 0 before it is shown.  Is there a good way to get the actual height & width of the menu before it is shown so I can position it correctly?

       

      Thanks!