Fix for submenu position and state on folded admin menu
|Reported by:||sambauers||Owned by:|
This patch has better math for determining the lower bounds of the pop-out sub menus in the "folded" admin menu.
The existing math is a bit hit and miss as it uses some strange derivative of the cursor position on mouse-over.
Also, the menu state should always be restored to apply proper classes to submenus, even when they are folded up. This allows the unfolding to reveal the right submenus straight away rather than on a page refresh.