openfl/openfl-html5-dom — pull request #53 by Rezmason (2013-12-05 16:09:28+00:00)
Title: Fixing canvas resizing in the openfl html5 target.

Changing the root movie clip canvas to change size when the resize event is dispatched.

As long as OpenFL draws the background to the root movie clip, we'll want the dimensions of that background to match the dimensions of the stage. Otherwise, the stage won't dispatch mouse events outside its initial dimensions when the stage is expanded.

The downside to this is that it clears Lib.current whenever the app resizes. An alternative to this approach is to draw these graphics somewhere else, or to use a different method to catch mouse events and draw the stage.