Fix for containers that have scrollbars.

The pop-up now hides itself whenever a container that it is in happens
to scroll. This means it should never be out of position in this
situation.