pyrocms/pyrocms — pull request #857 by kuroi (2011-10-30 17:54:46+00:00)
Title: Nudge drop down menus forward slightly.

This small change fixes two bugs.

On devices with a narrow viewport the admin menu wraps - fair enough. However, because the top level entries that are wrapped are added to the DOM later than the entries in their original positions, the drop down menus for those earlier entries sit behind the wrapped entries, rendering the drop down inaccessible. Nudging the drop down menus forward with a z-index declaration allows them to slide down in front of the wrapped entries making them accessible.

It also fixes a strange problem when viewing in Safari on an iPad. Here all drop down menus initially show the text for each entry, but then it disappears, leaving just the background, though the menu still navigates correctly when I click around blindly. For some reason applying a z-index to the drop down fixes this too, though the precise causality is less clear.