Open GoogleCodeExporter opened 9 years ago
[deleted comment]
and add the Math.round()
so the edge's don't bluers, if it hits a half pixel!
/**
* Positions a window in the center of the available screen.
*
* @param window:MDIWindow to center
* */
public function center(window:MDIWindow):void
{
window.x = Math.round(this.container.width / 2 - window.width / 2);
window.y = Math.round(this.container.height / 2 - window.height / 2);
}
Original comment by catop...@gmail.com
on 17 Aug 2009 at 8:27
Original issue reported on code.google.com by
macie...@gmail.com
on 16 Apr 2009 at 2:18