These examples show improvements to fit collision resolution.
The first 9 show how fit reacts when the menu is wider than the element it should fit in.
It is moved only until it would cause both edges to be outside of the "within" element.

The second 9 show similar behavior but for height.