fix: tooltips centre under their control, shifting only to stay inside the window

A tooltip opened from the leading edge of its control, so a wide one hung off to
the right of a toolbar button. It now centres on the control, and near an edge of
the window moves only as far as keeps it inside the window's margin.

Assisted-by: claude-opus-5.5
d596a5bc8cclover caruso committed on 10/3/2026, 6:56:16 PMparent93933f2
4 files changedLine totals unavailable