jquery/jquery-mobile — pull request #6509 by gabrielschulhof (2013-09-24 12:09:54+00:00)
Title: Panel: Resize modal overlay to stretch to the height of the document.

Fixes #6466 - Panel: Panel doesn't close by clicking outside if the page is scrolled down.

Basically, assign a height to the panel whenever you open it.