From eb7c4466e1151edd93ebec636c1184fda97b4efe Mon Sep 17 00:00:00 2001 From: James Chen Date: Sun, 12 Jan 2025 13:28:52 +0800 Subject: [PATCH] fixed #3d-tasks/18524: Error: [Assets] _updateAdaptResult Invalid size --- pal/screen-adapter/web/screen-adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pal/screen-adapter/web/screen-adapter.ts b/pal/screen-adapter/web/screen-adapter.ts index 0042c8296bb..6249062f01e 100644 --- a/pal/screen-adapter/web/screen-adapter.ts +++ b/pal/screen-adapter/web/screen-adapter.ts @@ -266,7 +266,7 @@ class ScreenAdapter extends EventTarget { return new Size(width, height); case WindowType.Unknown: default: - return new Size(0, 0); + return new Size(1, 1); } } private get _windowType (): WindowType {