cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Preview in Editor doesn't resize Canvas UI

Open BenoitFreslon opened this issue 2 years ago • 1 comments

Cocos Creator version

3.7.0

System information

macOS

Issue description

I'm using UI Canvas to get a responsive UI. I tested in editor with the "Preview in Editor" feature but the canvas doesn't resize.

Relevant error log output

No response

Steps to reproduce

Create a Canvas with Node with "Widget" components.

I click on the "Rotate" button to test. image image

However it works OK in the browser.

image

image

Minimal reproduction project

No response

BenoitFreslon avatar Jan 09 '23 15:01 BenoitFreslon

I guess the reason is the UI haven't receive any resize event from the Preview window

pandamicro avatar Feb 11 '23 15:02 pandamicro