bp74 / StageXL

A fast and universal 2D rendering engine for HTML5 and Dart.
http://www.stagexl.org
Other
881 stars 82 forks source link

StageAlign and window resize #31

Closed pompe84 closed 11 years ago

pompe84 commented 11 years ago

Ok. I have a stage that spans trought the entire width and height of the window. Now of course it resizes when the window resizes. But if the window resizes, the stage kinda looses its x and y coordinates. 0,0 is not on the top left any more.

I am using StageAling.TOP_LEFT, scaleMode = "noScale"

And I shuld probably mention that I am displaying objects that are accualy bigger than the stage itself.

Thanks

bp74 commented 11 years ago

Hi, this should work fine. Do you have a short sample application to show the problem? I would happily take a look at it if there is something wrong. I did all the tests when i implemented the stage alignment and scaling, and at that time everything worked fine.

pompe84 commented 11 years ago

Hi. You are right. I went to check my code again an I found out I had a bug in my code. Sorry for the troubles. I works great now.

bp74 commented 11 years ago

Great to hear that it works now! Have fun!