Skip to content

Block toolbar is cropped when the block is toward the right side of the screen #34053

Closed

Description

@jasmussen

Is there an existing issue for this?

  • I have searched the existing issues

Have you tried deactivating all plugins except Gutenberg?

  • I have tested with all plugins deactivated.

Have you tried replicating the bug using a default theme e.g. Twenty Twenty?

  • I have tested with a default theme.

Description

The block toolbar should be able to bump against screen edges to never be cropped like it is if you insert a block inside a right-most column:

Screenshot 2021-08-12 at 22 46 26

This used to work, but appears to have regressed at some point.

Step-by-step reproduction instructions

  1. Insert a columns block.
  2. Insert a block with a wide toolbar inside the right most column, and select it.
  3. Narrow the viewport so the toolbar gets cropped.

Expected Behavior

The block toolbar should never be cropped, and should bump against screen edges, and in this case be pushed leftwards by the right screen edge.

Current Behavior

It's cropped.

Screenshots or screen recording (optional)

No response

Code snippet (optional)

No response

WordPress Information

No response

Gutenberg Information

No response

What browsers are you seeing the problem on?

No response

Device Information

No response

Operating System Information

No response

Activity

  1. changed the title [-]<title>[/-] [+]Block toolbar is cropped when the block is toward the right side of the screen[/+] on Aug 12, 2021
  2. added
    [Type] BugAn existing feature does not function as intended
    [Type] RegressionRelated to a regression in the latest release
    on Aug 12, 2021
  3. jasmussen commented on Aug 12, 2021

    @jasmussen
    ContributorAuthor

    I could swear this used to work. @ellatrix do you recall?

  4. annezazu commented on Aug 25, 2021

    @annezazu
    Contributor

    Wondering if this might be related to this phenomenon too: #30398

  5. jasmussen commented on Aug 25, 2021

    @jasmussen
    ContributorAuthor

    Yes, that appears related. The block toolbar should always bump against screen edges.

  6. ellatrix commented on Sep 23, 2021

    @ellatrix
    Member

    I could swear this used to work. @ellatrix do you recall?

    Yes, we fixed this in the G2 PR #19344. That's what the __unstableBoundaryParent is for. Must have regressed somewhere. I can have a look.

  7. jasmussen commented on Oct 8, 2021

    @jasmussen
    ContributorAuthor

    ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest release

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions