浏览代码

wait until stage height has been correctly set (issue with chrome)

Nicolas Cannasse 13 年之前
父节点
当前提交
182c8fd920
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/flash/Boot.hx

+ 1 - 1
std/flash/Boot.hx

@@ -67,7 +67,7 @@ class Boot extends flash.display.MovieClip {
 			}
 			if( c.stage == null )
 				c.addEventListener(flash.events.Event.ADDED_TO_STAGE, doInitDelay);
-			else if( c.stage.stageWidth == 0 )
+			else if( c.stage.stageWidth == 0 || c.stage.stageHeight == 0 )
 				untyped __global__["flash.utils.setTimeout"](start,1);
 			else
 				init();