Ver Fonte

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

Nicolas Cannasse há 13 anos atrás
pai
commit
182c8fd920
1 ficheiros alterados com 1 adições e 1 exclusões
  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();