Skip to content

fix(menu): keep menu-bar menus under the bar, at most three quarters of the window tall, with a more-below hint (0.15.0) - #20

Merged
nodemode-ai merged 2 commits into
mainfrom
fix/menu-under-bar-0.15.0
Nov 30, 2026
Merged

nodemode-ai merged 2 commits into
mainfrom
fix/menu-under-bar-0.15.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

fix(menu): keep menu-bar menus under the bar, at most three quarters of the window tall, with a more-below hint (0.15.0)

Summary

  • Menu-bar menus open just under their button and are at most min(75% of the window, window height - top - 4) tall; the rest scrolls. Cause: MenuBar.show placed the menu at r.bottom + 4 with no height limit, and .cv-menu had no max-height or overflow, so a long menu in a short window ran off the bottom and its last rows could not be reached.
  • Submenus take the bar menu's floor and the same cap, and still open beside their row. Cause: Popup.showSub clamped the top to 4 pixels from the window top, so a long submenu could rise over the bar.
  • The more-below hint of FormVis 2.8.4: the card holds a scrolling .cv-menu-list and a .cv-menu-more pill; the list is masked so rows fade into the card's own glass. It is in place on the first painted frame (showMore(true) while the card is visibility: hidden), fades out in 160 ms at the last row and back in over 490 ms, and switches with no fade under reduced motion. Tokens: --glass-bg, --glass-border, --text-secondary.
  • A window resize closes the open menu, so a cap for the old height is never kept. Rows are never rebuilt.
  • formtools has no right-click or other point-anchored menu (searched openAt(, contextmenu, ContextMenu, place(, popover, role="menu"), so guide section 3b has nothing to apply to. The macOS system menu code is untouched.

Commits

  • fix(menu): keep menu-bar menus and their submenus under the bar, at most three quarters of the window tall, with a fade and pill while rows remain below (0.15.0)
  • chore(release): version 0.15.0 (0.15.0)

Version

v0.15.0 (release commit is last). Bumped by hand: frontend/package.json, the two own-version fields of frontend/package-lock.json, frontend/src/version.ts, backend/app/__init__.py, setup/cli.py, setup/mcp_stdio.py, setup/mcpb/manifest.json, src-tauri/Cargo.toml, the formtools entry of src-tauri/Cargo.lock, src-tauri/tauri.conf.json (formcompiler's version file), the README badge, and the Stage lines of AGENTS.md and CLAUDE.md. CHANGELOG.md has a 0.15.0 section, which also lists the two changes merged after 0.14.1 (third-party notices in Settings, About, and the shared Windows finder 1.1.0). The browser demos are rebuilt with npm run demo (only demo/assets/demo.js and demo.css changed; the bundle says 0.15.0).

Checks

  • npm run build (tsc --noEmit and vite build): clean.
  • npx vitest run (the existing unit tests): 257 passed. No test reads the menu's rows or scrollTop, so none was changed.
  • npm run demo: the three demos built.
  • The rebuilt demo (demo/) served over HTTP and measured in headless Chrome, CPU slowed 4 times, every bar menu (File, Edit, View, Tools, Desktop, Help) at 1280x800 and 1000x480. Bar bottom 33.5. In every frame while each menu opened, its top was 38, never higher. At 1280x800 every menu fits (tallest 377 of a 600 cap) and none shows the hint. At 1000x480 View and Desktop are 360 tall (cap 360), bottom 398 of 480, the hint on at full opacity when opened, and off at the last row (scrolled 17 px). The other four fit and show no hint.

Not run: a before build of origin/main (skipped as instructed); the 1871x1080, 1280x720 and 800x320 sizes; any submenu measurement (the only submenu, Help, Demos, is short and was not opened by the probe); the hint timings (part way at 80 ms, gone by 380 ms, back by 750 ms); End and Home; arrowing through a cut-off menu; the file:// opening of the demos; the desktop shell (Tauri) on any platform; the engine tests. DOM law: verified under 4x CPU throttling for the opening frames of every bar menu (top and height). The fade timings and keyboard paths were not verified.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

…ost three quarters of the window tall, with a fade and pill while rows remain below (0.15.0)

The bar placed its menus with no height limit, so a long menu ran off the bottom of the window, and submenus clamped to the window top, over the bar. Bar menus now open under their button with an inline cap set before measuring and scroll the rest; submenus take the same floor and cap. A card that is cut off shows the more-below hint of FormVis 2.8.4. formtools has no right-click or other point-anchored menu.
The version moves to 0.15.0 in backend/app/__init__.py, frontend/package.json, frontend/package-lock.json, frontend/src/version.ts, setup/cli.py, setup/mcp_stdio.py, setup/mcpb/manifest.json, src-tauri (Cargo.toml, Cargo.lock, tauri.conf.json), the README badge and the Stage line of the two agent guide files at the repository root, each by hand. CHANGELOG.md describes 0.15.0. The browser demos are rebuilt with npm run demo; only demo/assets/demo.js and demo.css changed. Ran on Linux: tsc --noEmit and vite build (clean), vitest (257 passed), the menu bar measured in the rebuilt demo in headless Chrome at 1280x800 and 1000x480 with the CPU slowed 4 times. Not run: the engine tests, the desktop shell, macOS and Windows.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 22:51
@nodemode-ai
nodemode-ai merged commit faad11d into main Nov 30, 2026
6 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-0.15.0 branch November 30, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant