fix: a table popover opens where it fits, in both chromes

The three dialogs placed themselves, so the ribbon's viewport
coordinates met CSS that hangs the box above its anchor: the
formula popover landed under the band, clipped. Each caller now
owns the placement — `anchored` in the ribbon, like every other
menu there, and a wrapper in the editor that clamps a tall one
into the scroll area instead of letting the overflow cut it.
This commit is contained in:
Steffen Becker committed 2026-08-14 22:11:49 +02:00
1 parent 3b24b14470
commit 8d866e4f1a
6 files changed
+184 -231

No files matched your search

+3 -1
View File
@@ -70,7 +70,9 @@ at every height. A flex row cannot reserve width in part of its height, so it mo
- **A menu must leave the flow.** `.ribbon-body` clips its own overflow, so the `anchored` action
(`ribbon/menu.svelte.ts`) switches a panel to `position: fixed` and pins it under its wrapper,
clamped inside the window. Panels drop below the **whole band**, not below their own button —
inside it they would cover the controls and group labels underneath.
inside it they would cover the controls and group labels underneath. A panel has to be out of
the flow (`position: absolute`) *before* it mounts: in it, it stretches the wrapper `anchored`
measures and lands its own height too low.
- **A reused picker anchors its panel itself**, and no prop says when it opened. `pinPanels`,
one action on the band, watches for a mounted absolutely-positioned node and pins that; the
ColorPicker places its own and only needs the band-aware top.