2 Replies Latest reply: Aug 10, 2008 11:10 PM by sbaldizz RSS

    size of system chrome

    sbaldizz Community Member
      There is a way to known the dimensions of the system chrome? (height of title and status bar, width and height of the border).
      Thanks!
        • 1. Re: size of system chrome
          Admiral_Brodnack Community Member
          The status bar isn't system chrome, it is provided by Flex.

          The width of the border (assuming left == right) can be computed from:
          border width= (nativeWindow.width - stage.stageWidth)/2

          The title bar can be computed, assuming the bottom border is the same as the side border:
          Titlebar height = nativeWindow.height - stage.stageHeight - (nativeWindow.width - stage.stageWidth)/2

          (The property names are off the top of my head, stage.stageHeight could be stage.height, etc...)
          • 2. Re: size of system chrome
            sbaldizz Community Member
            Thanks!
            Only a note: on Mac the systemchrome have only the titlebar, no border on left, right and bottom....