#111488FormEngine: tab scroller is missing for tabs loaded after page load
Description
Problem
FormEngine tab bars (.nav-tabs) get the <typo3-backend-tab-scroller> only from a JavaScript wrap that runs once when the document is ready. Tabs that FormEngine loads later get no scroller: no start/end arrows, no scrolling of the active tab into view, and on narrow viewports the tabs overflow their container. This happens for an inline (IRRE) child with tabs that is expanded and loads its fields via AJAX, and for a new inline child added with “Create new”.
The scroller also creates its scroll buttons again whenever it is moved in the DOM, e.g. when inline records are sorted, which duplicates them.
Steps to reproduce
- Install EXT:styleguide and create the TCA demo data
- Edit a record of “inline 1n” (tx_styleguide_inline_1n) whose children are collapsed
- Expand a child, which has the tabs “General” and “meta”
- Inspect the child’s tab bar: its
.nav-tabssits directly in adiv, not intypo3-backend-tab-scroller; make the window narrow and the tabs overflow the panel without scroll arrows
Cause
The tabs partial EXT:backend/Resources/Private/Partials/ModuleTemplate/Tabs.fluid.html, which FormEngine renders through AbstractContainer::renderTabMenu(), outputs a bare .nav-tabs. Build/Sources/TypeScript/backend/tab.ts wraps tab bars only in a single DocumentService.ready() callback. TabScrollerElement::createButtons() runs on every connect.
Suggested fix: render <typo3-backend-tab-scroller> around the .nav-tabs in the tabs partial, so later loaded FormEngine markup brings its scroller along, and create the scroll buttons only once per element.
Reviews 2
History 14
-
Gerrit Code Review pushed patch set 1 for main to change 97786 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-18T10:14:54+00:00" > 11/18/26, 10:14 </span> -
Gerrit Code Review pushed patch set 1 for 14.3 to change 97833 <span data-processor="relativetime" data-value="2026-11-19T08:40:41+00:00" > 11/19/26, 08:40 </span>
-
Gerrit Code Review pushed patch set 2 for 14.3 to change 97833 <span data-processor="relativetime" data-value="2026-11-19T08:45:49+00:00" > 11/19/26, 08:45 </span>
-
Benjamin Kott commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-19T09:15:15+00:00" > 11/19/26, 09:15 </span>
Applied in changeset commit:fb5851d6957278def84549516196fa730b33a421.