cad-editor/src/app/update
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
..
command.rs feat(plugin): surface loaded plugin commands in command-line autocomplete 2026-07-04 23:01:53 +03:00
dialog.rs feat(ribbon): collapse overflowing panels to flyout buttons, anchor dropdowns to their widget 2026-07-05 18:04:55 +03:00
dynamic.rs fix(dynin): read a comma-separated second point as cartesian, not W/H 2026-07-04 22:27:59 +03:00
file.rs perf(xref): fix O(n²) AcDs parse and skip host re-tessellation 2026-07-05 00:38:38 +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
style.rs refactor(viewport): migrate model-space tiling to iced pane_grid 2026-06-27 11:50:11 +03:00
util.rs refactor: split four oversized files into submodule trees 2026-06-26 22:51:29 +03:00
viewport.rs feat(snap): mark the parallel reference line + toggle it off on re-hover 2026-07-05 14:50:33 +03:00