Problem/Motivation

Unlike the demo video, as well as the core Layout Builder behavior, the editing viewport does not resize when the off-canvas comes into view. Rather, it covers the content.

The Gin Layout Builder off-canvas edit pane wrongly over top of content

Steps to reproduce

Open any off-canvas edit pane in a Layout Builder enabled layout.

Remaining tasks

Discover root cause of issue
Apply a fix

Issue fork gin_lb-3484332

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

frankied3 created an issue. See original summary.

frankied3’s picture

This is perhaps also an issue of the project page's representation of the module no longer representing its current state. Both the region and content preview buttons are now nested beneath display options, which is not the case in the screenshot nor the video.

erwandsn’s picture

Up, i'm facing the same issue

After migration from D9 to D10.4, this is not usable anymore by contributors, the whole page is truncated

christian.wiedemann’s picture

We should add a option to handle this. Often it is better to overlap but of course there are cases which resize is better.

erwandsn’s picture

Their is a big issue in my case when the Layout Builder edit viewport is not resized.
We have some full screen width block in the website i work for. And the contextual link is display behind the sidebar in this case. So contributor is no longer able to contribute on it.

christian.wiedemann’s picture

I am not sure if I understand the problem. The right edit sidebar overlap the content. This is actually the current behavior for very long time. We did that because resizing the content leads to jumps and the editor loses the scope. But I am open to add a configuration where we can configure this behavior.

strykaizer’s picture

Adding this behaviour as a setting would be really nice!

claireristow’s picture

I believe I'm experiencing the same problem. I can't access the contextual links to edit or remove existing blocks in layout builder. The sidebar overlaps the content including the contextual links and since the sidebar can't be collapsed, the contextual links are completely inaccessible.

I've added a screen recording demonstrating the issue. In the recording, I use display: none; on the layout builder sidebar to show the hidden contextual links behind it.

strykaizer’s picture

Status: Active » Needs review

MR created, needs review

christian.wiedemann’s picture

Should we move this feature to the current 3.0.x branch?

janpersoons made their first commit to this issue’s fork.

christian.wiedemann’s picture

Version: 1.0.x-dev » 3.0.x-dev

Thanks! I merged it to the 3.x branch

christian.wiedemann’s picture

Status: Needs review » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.