Skip to content

Resizing issues in the Site Editor preview #52464

@simom

Description

@simom

Description

While editing a page in the Site Editor, if you modify the preview size using the "view" button in the top bar and then return to the Editor navigation, the iframe retains its resized state while the container does not. This results in an unusual behavior when attempting to resize it using the preview's left handle.

Expected behavior

Would it be better to reset the preview to the desktop mode when the user exits from the editing mode?

Step-by-step reproduction instructions

  1. Open the Site editor
  2. Click on a page to enable the editing mode
  3. Change the preview mode to something differente from the desktop mode
  4. Click on the top left corner WordPress logo to go back to the Editor navigation
  5. Try to resize the preview with the left handle

Screenshots, screen recording, code snippet

Registrazione.schermo.2023-07-10.alle.11.32.07.mp4

Environment info

WordPress 6.3-beta3
Gutenberg 16.1.2

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

Labels

[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions