Roadmap 0.11, Fixes
FX.392 Every app: a menu or pop-up never falls off an edge of its panel or the window
Reported on Discord 2026-11-20 (CadCraft on Linux): in the Layers panel the Tools menu ran off the panel's left edge and its labels were cut. Owner 2026-11-20: sweep all the menus and panels so none falls off the left, right, top or bottom; they should work out how close the edge is. Cause of the report: since the section links moved under the title (2026-11-12) the Tools button sits near the panel's left, and its list hangs from the button's right edge at a fixed minimum width, so in a narrow panel it starts left of the panel, which cuts it. Not a Linux fault: any narrow panel shows it. Built in the lab: one shared helper for all eight apps, assets/js/app-popfit.js (window.ccPopFit). When a menu opens it is measured against the window and every box above it that clips or scrolls. Too wide or too tall: it is narrowed or given a scrolling height. Past the left or right: it slides back in. Past the bottom: it opens above its button when there is more room there, else it takes the room below and scrolls. It uses only inline translate, width and max-height, only when something is out, and takes them back on the next open. It finds details menus and script-made menus by itself (role menu, listbox, dialog, or a menu-like class); data-popfit="off" leaves an element alone. Checked: tools/shell-test/browser-popfit.mjs opens every details menu and pop-up button and right-clicks near the corners in each app's lab build at 1440 by 900 and 1024 by 640. Without the helper 28 menus were off an edge (CadCraft 14, ModelCraft 6, MarkupCraft 2, TakeoffCraft 1, CivilCraft 2, DetailCraft 1, PartCraft 2; BimCraft 0). With it: none, 49 of 49 checks. Limits: loaded on lab (a Discord member) builds only, so released builds and Studio get it when the release that carries it is frozen; not run in Studio's web view, in SuperCad Studio, or on a phone; a menu behind a tab or dialog that the sweep did not open was not measured; Bootstrap drop-downs already place themselves and are left alone.
Community comments
No comments yet
Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.
Sign in or create a free account to add a comment.