keep the popup template inside the viewport
Merge pull request #7 from One-com/feature/screenOverflowPrevention

keep the popup template inside the viewport