From 4ccd8bde504437645a225b791f488322568c79a2 Mon Sep 17 00:00:00 2001 From: gongxh Date: Fri, 30 May 2025 17:19:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=82=E9=85=8D=E5=99=A8?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=B0=BA=E5=AF=B8=E8=AE=BE=E7=BD=AE=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ package.json | 2 +- src/global/Adapter.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dada950..f8a751f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,3 +20,5 @@ - 兼容性修改,兼容creator3.7及之后的版本 ## 1.0.35 - 修复未配置GameEntiry中的ecConfig时报错的问题 +## 1.0.38 +- 修复适配器设计尺寸设置错误的问题 \ No newline at end of file diff --git a/package.json b/package.json index eb0193e..73757d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kunpocc", - "version": "1.0.37", + "version": "1.0.38", "description": "基于creator3.0+的kunpocc库", "main": "./dist/kunpocc.cjs", "module": "./dist/kunpocc.mjs", diff --git a/src/global/Adapter.ts b/src/global/Adapter.ts index f3574c0..ab86c59 100644 --- a/src/global/Adapter.ts +++ b/src/global/Adapter.ts @@ -19,7 +19,7 @@ export abstract class Adapter { let designSize = this.getDesignSize(); Screen.DesignHeight = designSize.height; Screen.DesignWidth = designSize.width; - view.setDesignResolutionSize(Screen.DesignWidth, Screen.DesignWidth, ResolutionPolicy.SHOW_ALL); + view.setDesignResolutionSize(Screen.DesignWidth, Screen.DesignHeight, ResolutionPolicy.SHOW_ALL); this.resize(); this.registerResizeCallback((...args: any) => {