Skip navigation
Currently Being Moderated

Window dimensions after maximize()

Mar 11, 2013 2:23 AM

Tags: #air #bounds #maximize #dimensions #nativewindow



Window dimensions seem not to be what they should be after maximize.


Take a windowedapplication with width 1280 and height 720 (or any other size as far as I can tell) and call this.stage.nativeWindow.maximize() on it. Now take a look at stage.nativeWindow.bounds.toString(). It returns something like this:


(x=-8, y=-8, w=1936, h=1056)


Why is the position at -8,-8 and the dimensions not same as fullscreenWidth and height (1920x1080)?


This will cause the window to overflow to a possible extendted desktop. Is there a workaround for this?


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points