johndyer/mediaelement — pull request #500 by markomarkovic (2012-05-25 14:59:23+00:00)
Title: Fix play/pause when clicking on video when overlays are displayed

If the subtitles or chapters are enabled and shown, you're unable to click on video to pause it.

This patches fixes this by:
- Resizing the .mejs-chapters layer height when it's shown to the outerHeight of it's child .mejs-chapter element so it doesn't cover the entire video but only the necessary area.
- Brings .mejs-chapters layer to z-index 1 (same as controls) so it's still clickable when video is paused.
- Resizing to .mejs-captions layer height to 0. This works because .mejs-captions-position position is absolute.