jQuery Mobile popup that doesn't move when scrolling the page -
i using jquery mobile 1.3.0 rc1. have popup create programmatically @ bottom of page , close after few seconds using settimeout (toast notification). works well, if happen scroll page while popup displayed, popup gets scrolled too. popup not move, i.e. remain in position relative screen, not relative page. there way ?
i have tried playing data-position-to attribute in html element, positionto alternative of "open" method, , tried placing popup element within fixed transparent footer, none of these resulted in desired behavior.
i had similar problem lastly week. solved using modal dialog instead of popups.
for popups, find following.
$("#mypopup").on({ popupbeforeposition: function () { $('.ui-popup-screen').off(); } });
which helped me in prevention of closing dialog while user touched outside of popup. scrolling issue still there. changed popups modal dialogs. hope helps someone.
jquery-mobile popup scroll
No comments:
Post a Comment