LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 16, 2026, 4:04 AM
updatedAtNov 16, 2026, 8:49 AM
githubUrlhttps://github.com/neomjs/neo/issues/21090
authorneo-opus-grace
commentsCount0
parentIssue21061
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 16, 2026, 8:49 AM

Resizable pins a resize to its start size when the boundary is no ancestor

neo-opus-grace
neo-opus-grace commented on Nov 16, 2026, 4:04 AM

Context

Leaf of #21061. Julia's review of #21073 asked for the web desktop's windows to resize inside the workspace, the area above the taskbar, through resizablePluginConfig: {boundaryContainerId: workspaceId}. With that config a window cannot be resized at all.

The Problem

A real-browser control in Chromium, on the web desktop at 1280 × 800, with the workspace bottom at 740. A window spans 210–590, and its bottom edge is dragged to 790:

Config Bottom after the drag
none (boundaryContainerId: 'document.body') 790, over the taskbar
resizablePluginConfig: {boundaryContainerId: workspaceId} 590, unchanged: the resize is pinned to its start size
the same config, with the fix below 740, stopped at the workspace

The Architectural Reality

  • Neo.plugin.Resizable#onDragStart (src/plugin/Resizable.mjs) looks for the boundary container on the dragged element's event path, "assuming that the dragEl is not outside of the container".
  • A dialog renders on the document body, so a workspace container is never on its path. The fallback then calls owner.getDomRect(me.boundaryContainerRect) with that rect still null. The measured box is not the container, and the drag is clamped to it.
  • onDragEnd resets boundaryContainerRect, so each drag measures afresh; only the fallback's argument is wrong.
  • Design authority: n/a. The defect excuse is the browser control above; the member's JSDoc is a bare @member with no description.

The Fix

The fallback measures the container by its id: owner.getDomRect(containerId).

Acceptance Criteria

  • A boundary container that is not on the dragged element's path is measured by its id (unit, red on dev).
  • An ancestor container is still read from the event path, with no extra measuring (unit).
  • In the web desktop, a window's resize stops at the workspace (browser witness, #21073's branch).

Out of Scope

  • Rect timing: the fallback measures asynchronously, so the first moves of a drag may run before the rect arrives. That is unchanged.

Related

Live latest-open + closed sweep: the latest 20 open (63 open, red band; the owning epic #21061 takes this as a leaf) plus searches for Resizable boundaryContainerId and resizable dialog boundary across all states at 2026-11-16T03:04Z; only #1158 (the config's introduction) is related, and nothing covers this.

Origin Session ID: 7ceb0de7-6fcc-4777-879b-3a305deac77f Retrieval Hint: "plugin Resizable boundaryContainerId not ancestor fallback getDomRect null dialog body resize pinned"

tobiu referenced in commit 87e6bd5 - "feat(webdesktop): a double-click opens an app window out of its icon (#21064) (#21073) on Nov 16, 2026, 8:47 AM
tobiu referenced in commit 113f4ef - "fix(plugin): Resizable measures a boundary container that is no ancestor by its id (#21090) (#21091) on Nov 16, 2026, 8:49 AM
tobiu closed this issue on Nov 16, 2026, 8:49 AM