Hello,
I’m using Drupal 11.
With Layout Builder, I created a section with two columns:
-
Column 1: a Body block displaying an article
-
Column 2: a Tocbot TOC block from Tocbot
The goal is to display a floating table of contents for the article in the TOC block in column two.
I configured the Tocbot module to generate a floating menu and set an offset so it does not overlap my hero image.
When I open an article, the floating TOC initially appears correctly inside column two. However, once I start scrolling through the article, the floating menu is redrawn and no longer respects the boundaries of column two.
How can I configure Tocbot so that the floating menu remains constrained within column two while scrolling?