abea7a3a3deadf91f9d33871bc8e46d78806a9ef
splitInner and insertPanel both ended with `100 / newChildren.length` applied to every sibling, so splitting any panel in a group discarded every proportion in it. A deliberately narrow sidebar became an equal column the first time anyone split the panel next to it — and there was no way to get it back except by dragging the splitter again. The new sibling now takes half of the target's size and nothing else moves. One helper for both call sites, because the drop path (movePanel -> insertPanel) had the identical bug and would otherwise have kept it. Three tests. Two of them were already there asserting the even split, written against the old behaviour on purpose; they now assert the new one. The move test is new and documents the interaction worth knowing: removePanel renormalises the group when the panel leaves, so a move reads as renormalise-then-halve.
Description
No description provided
42 MiB
Languages
TypeScript
90.9%
Shell
4.7%
JavaScript
4.1%
CSS
0.2%
HTML
0.1%