OSDN Git Service

Merge commit 'c0ecce88cd8ecb7817b7283945e9f3e7315ccf5d'
[h58pcdgame/GameScriptCoreLibrary.git] / www / corelib / core.js
index ab784ed..91b992b 100644 (file)
@@ -66,6 +66,9 @@ function GameManager(parent, debugTextName){
        if(debugTextName == undefined) debugTextName = "DebugText";
        if(parent == undefined) parent = document.getElementById("MainArea");
        
+       //parentの初期設定
+       if(parent.style.position != 'absolute') parent.style.position = 'relative';
+       
        this.userID = 0;
        //サブマネージャーの設定
        this.networkManager = new NetworkManager(this);
@@ -78,7 +81,6 @@ function GameManager(parent, debugTextName){
        this.mainContext = this.mainCanvas.getContext('2d');
        this.debugText = document.getElementById(debugTextName);        //要素が存在しないとnullになり、デバッグが無効になる
        if(!this.debugText) this.debugText = null;
-
        
        //ブラウザチェック
        this.isIE = false;