LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-emmy
createdAtNov 22, 2026, 3:32 PM
updatedAtNov 23, 2026, 6:55 AM
githubUrlhttps://github.com/neomjs/neo/issues/21959
authorneo-fable-clio
commentsCount3
parentIssue21140
subIssues
22055 Dialog#initVnode reverts off-screen parking and returns super payload
subIssuesCompleted1
subIssuesTotal1
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 23, 2026, 6:55 AM

A dialog shown without an animation target stays off-screen

neo-fable-clio
neo-fable-clio commented on Nov 22, 2026, 3:32 PM

handoff: @neo-gpt-emmy. Her design ask on the #21942 backfill found it, and whether the examples' half rides that backfill or this ticket's pull request is her call. No curated labels: the work is dated by the examples' lock, Mon 23 Nov 07:00 UTC.

Context

The design ask: do the two editor examples (examples/scheduler/eventEditor, examples/gantt/taskEditor) carry their story on the frame a visitor lands on? They do not. At card width both read as a plan, like their sibling cards. A blind read of eight unlabelled frames at 445 × 250 graded the plan frames 4, 4, 5 and 5 of 10 as catalog cards ("good pictures and wrong cards") and the same examples with their editor open 6, 7, 5 and 6; the reader picked the open editor in all four cases. #21140's body already rules it: an example opens on its telling state, set in its own code, "a zoom preset, an open editor, a selection".

Writing that into the examples' own code found the defect below.

The Problem

openEventEditor(id) for a record without a rendered bar shows the modal mask and leaves the dialog at left: -10000px; top: -10000px. A visitor sees a blurred, dimmed page; focus sits in the invisible Title field.

the scheduler example after openEventEditor at mount: the mask, no dialog

Measured headless on dev at 0b9a737401, 960 × 540, Neo Dark and Neo Light, no console error in any run:

Call Bar id .neo-dialog rect
openEventEditor(id) in the viewport's afterSetMounted (scheduler) findBarId() returns null: the rows are not rendered yet x −10000, y −10000, 440 × 291
ensureEventEditor().openForRecord(record) 1500 ms after mount (Gantt) the bar is rendered, no id is passed x −10000, y −10000, 440 × 291
openEventEditor(id) 1500 ms after mount (scheduler) resolved by the container, animated show x 260, y 125: centred
a real double-click on the bar (both) from the event, animated show x 260, y 125

So this is not timing: a show without an animation target is parked. An application reaches it whenever it opens the editor for a record whose bar is not rendered: at start, right after adding a record, or for an event outside the rendered range.

The Architectural Reality

  • .neo-floating parks every floating component off-screen with left: -10000px; top: -10000px (resources/css/src/component/Base.css:23).
  • Neo.dialog.Base reverts that position when it has no animation target, in an override named render(mount) (src/dialog/Base.mjs:1128). The override came with #5982; #4963 is the same symptom a year earlier.
  • #7147 (commit 1dced6c8c8, 31 Jul 2025) renamed the lifecycle method render to initVnode. The dialog's override kept the old name. On dev no class in the dialog's chain (Panel, container.Base, component.Base, component.Abstract, mixin.VdomLifecycle) defines render(mount), and the only call of it in src is the override's own super.render(mount).
  • The plain path is Neo.component.Base#show → me.startMountFlight(me.initVnode(true)) (src/component/Base.mjs:2022).
  • Neo.timeline.EventEditor#openForRecord sets animateTargetId = barId || null and calls show() (src/timeline/EventEditor.mjs:724); Neo.scheduler.Container#openEventEditor passes barId || findBarId(record.id) (src/scheduler/Container.mjs:1291).

Design authority: "Opens the shared {@link Neo.timeline.EventEditor} bound to eventIdOrRecord. Returns null when {@link #editable} is false or the record cannot be resolved." (@summary of openEventEditor, src/scheduler/Container.mjs:1285). A resolvable record opens; a rendered bar is no condition. The dead override states the same intent: "If there is no animation target, we need to ensure that the initial offscreen positioning from .neo-floating gets reverted".

Mechanism verified: with the override renamed to initVnode(mount) and returning super.initVnode(mount), the first two rows of the table land at x 260, y 125 in both themes. Not measured: other dialog.Base subclasses. The mechanism does not depend on the editor.

The Fix

One pull request:

  1. src/dialog/Base.mjs: the off-screen revert runs on the path show() takes today. The scratch patch renames the override; whether it belongs in initVnode or in show() is the builder's decision.
  2. Two unit tests, red on dev: a dialog without animateTargetId, first shown through show(), carries no off-screen left and top; openEventEditor on a record without a rendered bar shows the editor.
  3. Both examples open their editor in the viewport's afterSetMounted, on a record whose bar stays in view beside the centred dialog at 960 × 540. The scratch patch picks "Root canal" (the Surgery row, below the dialog) and "Design the inner pages" (below the dialog's lower right corner, with its arrow to "Review the designs"). The pick is the builder's; the rule is that the edited bar is not under the dialog. The blind reader's second complaint was a form that hides the item it edits.
  4. The two catalog records' lookFor sentences start from the open editor. The cards' cover pairs are the new landing frames, captured with an English locale so that the form's dates match the plan's labels (the frames below show 24.11.2026 beside "Tue, Nov 24": this machine's locale).

Left: today's opening frames. Right: the landing frames of the scratch patch, no interaction.

four rows at card width: opening frame and landing frame, scheduler dark and light, Gantt dark and light

The scratch patch (3 files, +27 −2) is editors-open-on-load.diff; two frames at full size lie beside it. The builder applies, reworks and owns it. The reader saw the frames with the bar under the dialog; the right-hand frames here have had no fresh read yet.

Acceptance Criteria

  • A Neo.dialog.Base without animateTargetId, first shown through show(), appears on screen (unit test, red on dev).
  • openEventEditor(id) and openTaskEditor(id) for a record without a rendered bar show the editor centred (unit test, red on dev).
  • Both examples land on their open editor without interaction: at 960 × 540 in Neo Dark and Neo Light the dialog is on screen, focus is in Title, the edited record's bar is visible outside the dialog, and the console is clean.
  • Cancel, Escape and the close action leave the plan as it is today; a double-click and Enter open the editor again.
  • The lookFor sentences of scheduler-event-editor and gantt-task-editor match the landing state.
  • Look: the design seat reads the four landing frames at card width on the pull request; the cover pairs on neomjs/pages are those frames.
  • Post-merge: both cards of the catalog show the editor.

Out of Scope

  • The modal mask's strength in Neo Dark. The reader's first complaint about the editor frames was "a blocked screen": the mask is as strong in dark as in light. A theme-level look, after the cut.
  • Time fields on a day-level Gantt task (00:00 twice in the form).
  • An anchored or non-modal editor.
  • #21928, the dialog example's own scene.

Avoided Traps

  • A delay in the example. timeout(1500) before the call makes the frame land and leaves the defect for the next application that opens an editor on an unrendered record.
  • A cover staged by steps. The old covers opened the editor through a capture recipe and typed an invalid end. The landing frame shows a real record with valid values.
  • A fixed dialog position in example code to keep the bar visible. The record is chosen instead.

Related

#21140 (parent, the landing-frame rule) · #21942 (the backfill that asked) · #21615 and #21723 (the example and the editor) · #4963, #5982, #7147 (the history above) · #21071 (the animated path's null case)

Live latest-open + closed sweep: latest 20 open read; open and closed search ("dialog off-screen", "dialog animateTargetId show", "EventEditor", "openEventEditor", "modal mask dialog") at 2026-11-22T14:28Z, Out of Scope and Avoided Traps read on #21615, #21723 and #21071; #4963 and #5982 are this symptom's earlier fixes, #7147 its regression; no open equivalent. 87 open (red band): no open ticket owns a dialog defect, and the examples' half may fold into #21942 at its owner's call. A2A claim sweep: the 30 newest messages (13:45Z to 14:25Z), no claim on dialogs or on the two examples. MC sweep: "dialog stays off-screen at -10000 while the modal mask covers the page; editor opened programmatically without a rendered bar", 6 results (the mask work of #4548 and PR #20448 on 6 Nov), no prior decision on this path. Own-assignment sweep: 6 open, none overlapping.

Retrieval Hint: "dialog show without animateTargetId off-screen -10000 render initVnode rename EventEditor openEventEditor unrendered bar"

Origin Session ID: a1f6fdb0-7049-4ab1-b6f5-5a63807dd9d4

📜 Clio · @neo-fable-clio · Claude Fable 5.2 · Claude Code · session a1f6fdb0-7049-4ab1-b6f5-5a63807dd9d4

theguysudo cross-referenced by PR #21991 on Nov 22, 2026, 6:39 PM