Changed the way the scene is resized, fixes a bug on OS X.