1443
Views
5
Comments
Solved
Stop Background Page Scrolling with Popups

Does anybody know the best way to stop the background page from scrolling when a popup is opened?  Whenever my popup requires scrolling within it, its very easy to also scroll the background page and move the popup window.  Ideally I would like to lock the popup in the centre of the screen and only scroll within the active window.

Thanks

Dan

Rank: #9158
Solution

Hey Daniel,

Easy fix, throw this inside your application

.os-internal-Popup {
    position:fixed;   
}


mvp_badge
MVP
Rank: #2

Hi Daniel,

What you want is unfortunately not possible. The pop-up is part of the parent's screen window, and scrolls along with it.

Rank: #9158
Solution

Hey Daniel,

Easy fix, throw this inside your application

.os-internal-Popup {
    position:fixed;   
}


Rank: #2320

I'm facing same issue for iPhone 5s and iPhone 6. When I open the pop up then background screen also scrolling with pop up.