cad-editor/src/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 39043e6e56 feat(ui): anchor every ribbon dropdown and status-bar popup to its widget, flipping at window edges
All ribbon dropdowns (tool dropdowns, undo/redo history, and the layer /
colour / linetype / lineweight / style combos) and all status-bar popups
(scale, units, OSNAP, isolate, filter, customization menu, layout list)
now open directly at their widget instead of at a layout-estimated
position, and flip to the other side when the panel would cross a window
edge.

Each dropdown/pill widget is wrapped in a transparent PosReport that
records its screen bounds into a thread-local map on draw. The overlays
read those bounds:
- Ribbon: Ribbon::dd_anchor(id, panel_w, win_w) returns
  (align_right, h_pad, top); position_ribbon_dropdown places the panel
  below the widget, flipping right-aligned near the right edge.
- Status bar: popup builders take (pill_bounds, win_size) and call
  popup::position_statusbar_popup / popup_anchor, opening just above the
  pill and flipping left/right at the window edge.

The window size is now tracked (win_size, set on WindowResized). The old
layout estimators compute_dropdown_left / compute_layer_combo_left /
compute_prop_combo_left / compute_history_dropdown_left and
osnap_popup_right_offset are deleted.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-05 18:51:54 +03:00
..
commands feat(plugin): surface loaded plugin commands in command-line autocomplete 2026-07-04 23:01:53 +03:00
update feat(ui): anchor every ribbon dropdown and status-bar popup to its widget, flipping at window edges 2026-07-05 18:51:54 +03:00
view feat(ui): anchor every ribbon dropdown and status-bar popup to its widget, flipping at window edges 2026-07-05 18:51:54 +03:00
automation.rs fix(rotate): apply a typed angle right after the centre (#159) 2026-06-25 19:58:45 +03:00
command_driver.rs fix(insert): place block attributes by their ATTDEF geometry, follow the block (#255) 2026-07-03 16:47:39 +03:00
document.rs feat(commands): expand standard CAD command coverage 2026-06-29 08:23:58 +03:00
expr_eval.rs fix(expr-eval): bound eval_to_string against super-linear DoS 2026-06-28 22:41:02 +03:00
helpers.rs build(deps): bump acadrust to 486c0a9; handle the Helix entity 2026-07-02 23:28:37 +03:00
history.rs perf(hash): swap std HashMap/HashSet for rustc-hash FxHash 2026-06-05 00:35:53 +03:00
layers.rs refactor: move resource/IO root modules under io/ 2026-06-26 23:06:40 +03:00
mod.rs feat(ui): anchor every ribbon dropdown and status-bar popup to its widget, flipping at window edges 2026-07-05 18:51:54 +03:00
model_ops.rs fix(web): restore wasm build broken by SECTION + file association 2026-06-29 17:13:17 +03:00
mtext_editor.rs refactor: remove remaining world_offset vestiges in app/ 2026-06-24 19:01:25 +03:00
plugin_host.rs fix(plugin): auto-register unknown layers so added entities survive DWG save (#252) 2026-07-02 20:36:16 +03:00
properties.rs fix(commands): ADDSELECTED keeps CLAYER, adopts dimension style (#239) 2026-07-03 16:05:54 +03:00
recent.rs feat(ui): replace app-menu logo with a quick-access file toolbar 2026-07-03 09:51:49 +03:00
settings.rs feat(io): autosave to .sv$ recovery files (SAVETIME command) (#205) 2026-06-29 13:17:40 +03:00
style_ops.rs chore: clear compiler warnings 2026-06-18 21:18:09 +03:00
text_inline.rs feat(ucs): orient text-bearing annotations to the active UCS 2026-06-22 18:18:35 +03:00
visibility.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00