Skip to content

Block editor: unwanted scroll bar while loading. #67360

Closed

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

Activity

  1. added
    [Package] Block editor
    [Type] Bug
    on Nov 27, 2024
  2. t-hamano commented on Dec 2, 2024

    @t-hamano
    Contributor

    I'm wondering why the theme style preview or palette preview even needs zoom-out related CSS class names or variables 🤔

    Image

    cc @jeryj @draganescu @ajlende

  3. jeryj commented on Dec 2, 2024

    @jeryj
    Contributor

    I think this should be fixed by #67495 and #67496

    Ah, never mind. I think this is due to the animation assuming the resulting canvas will have a scrollbar. If the height of the content is less than the frame, we won't want to force a scrollbar.

  4. added
    [Status] In Progress
    on Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Feature] Zoom Out[Package] Block editor[Status] In Progress[Type] Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions