Skip to content

Block editor: unwanted scroll bar while loading. #67360

@matiasbenedetto

Description

@matiasbenedetto

Description

On load time the block editor displays an unwanted scroll bar. Please take a look at the screenshot below.

I'm tagging this issue with zoom-out tag because this seems to be the result of the changes introduced in #67126

Specifically this line:

// Force preserving a scrollbar gutter as scrollbar-gutter isn't supported in all browsers yet,
// and removing the scrollbar causes the content to shift.
overflow-y: scroll;

Step-by-step reproduction instructions

  1. Use Gutenberg trunk and TT5 theme.
  2. Browse theme style variations in the sidebar.
  3. Observe the unwanted scroll bars while the block editors are loading

Screenshots, screen recording, code snippet

Image

Environment info

  • WordPress 6.7.1
  • Gutenberg trunk

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions