mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
The editor panel was a floating window pinned to the top of the screen, so every button underneath it had to be uncovered by hand before it could be touched. Dragging it was not an occasional adjustment, it was the price of editing anything in the top half of the layout. It now docks to the opposite half from whatever is selected: pick a button up top and the panel goes to the bottom, pick one at the bottom and it returns. Halves rather than real overlap maths, deliberately -- a panel that darts around as rectangles graze each other is less predictable than one that is simply never on the same side as the thing you are working on. Manual dragging stays for anything unusual. The stored offset means "away from the anchored edge" and so flips with the anchor; without that, a panel the user had nudged down would be nudged straight off the bottom of the screen the moment it docked there.