From 964c064bcc56103cd38c7edcd5e657a8192e26e1 Mon Sep 17 00:00:00 2001
From: fanxuehan <fanxuehan@qq.com>
Date: Thu, 28 Oct 2021 14:16:41 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20scene=20=E7=9A=84=20size=20=E4=B8=8D?=
 =?UTF-8?q?=E8=83=BD=E4=B8=BA0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 play/assets/scene/scene/scene.js | 3 +++
 publish/build_check.js           | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/play/assets/scene/scene/scene.js b/play/assets/scene/scene/scene.js
index 1f119c3..3f5c564 100644
--- a/play/assets/scene/scene/scene.js
+++ b/play/assets/scene/scene/scene.js
@@ -49,6 +49,9 @@ cc.Class({
 		sy = frameSize.height / this._designSize.height;
 		this._mapScaleMin = Math.min(sx, sy) * this._cocosScale;
 		this._mapScaleMax = Math.max(sx, sy) * this._cocosScale;
+		
+		cc.director._scene.width = frameSize.width;
+		cc.director._scene.height = frameSize.height;
 	},
 
 
diff --git a/publish/build_check.js b/publish/build_check.js
index 9c1cd8f..5cfcc0a 100644
--- a/publish/build_check.js
+++ b/publish/build_check.js
@@ -29,4 +29,6 @@ files.forEach(fileName => {
 
 if (!same) {
   throw (`bundle文件夹名称(${folderName})与scene名称不相同`);
-}
\ No newline at end of file
+}
+
+// 'caller', 'callee', and 'arguments'
\ No newline at end of file
-- 
2.21.0