Resizing the Settings Tray causes it to erratically offset from the edge of the page

Created on 18 October 2023, about 1 year ago
Updated 15 January 2024, 10 months ago

Problem/Motivation

The off-canvas settings tray moves away from the right edge of the page when grabbing the resize handle and resizing the tray's width. This then causes the main content to resize in unpredictable ways as well.

It's possible this has something to do with Drupal.displace() calculating the offsets incorrectly.

Steps to reproduce

Create a fresh site, enable layout builder, and set a content type to use layout builder. Edit a node via layout builder and add a section. When the settings tray appears, grab the left side handle and drag it in and out a couple of times. You will see the tray jump around and offset from the right side. This occurs in both firefox and chrome.

πŸ› Bug report
Status

Active

Version

10.1 ✨

Component
Settings trayΒ  β†’

Last updated 14 days ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @tedbow
Created by

πŸ‡ΊπŸ‡ΈUnited States segovia94

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @segovia94
  • πŸ‡«πŸ‡·France fwust Strasbourg

    I'm trying to work on this issue

  • πŸ‡ΊπŸ‡ΈUnited States segovia94
  • πŸ‡©πŸ‡ͺGermany ammaletu Bonn, Germany

    We see a very similar behvior in our Drupal 10.1.7 sites. Every time I let go of the handle for resizing, the Layout Builder panel jumps a bit to the left. Apparently, its position is computed and then set as "x pixels from the left". If the panel is supposed to be shown on the right side, why is it not positioned as "y pixels from the right" (y being the width of the panel)?

Production build 0.71.5 2024