Skip to content

Commit

Permalink
fixed #3d-tasks/18524: Error: [Assets] _updateAdaptResult Invalid size
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Jan 12, 2025
1 parent d1ab113 commit eb7c446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pal/screen-adapter/web/screen-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit eb7c446

Please sign in to comment.