Skip to content

Revert resized canvas and don't render resize handles when zoomed out #59389

Closed
@t-hamano

Description

@t-hamano

Description

Enabling zoom-out view on resizable canvases such as template parts or patterns results in unnatural scroll bars. Also, when you move the resize handle, the canvas size seems to change unnaturally.

I think if zoomed-out view is enabled, we need to revert the resized canvas size and disable the resizing feature itself.

Step-by-step reproduction instructions

  • In advance, enable "Zoomed out view" on the "Experiments" page.
  • Open the site editor.
  • Open the pattern you created or one of the template parts.
  • Click the Zoom Out View button.
  • Play with the resizing handles and test how the canvas changes.

Screenshots, screen recording, code snippet

e00850dcf94e015228ada76f08358180.mp4

Environment info

Gutenberg 17.8.0-rc.2

Note: Zoom-out view is an experimental feature and is not available in WP6.5.

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")[Feature] Zoom Out[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended[Type] ExperimentalExperimental feature or API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions