basis.ui.popup: fix viewport resolving for scrolling pages