Skip to content Skip to sidebar Skip to footer

How Do I Update The Position Of A Jquery Mobile Global Popup?

I have a jQuery Mobile global popup, whose contents are generated dynamically. So by default it's empty. I'm listening for the beforeposition event to capture the popup being opene

Solution 1:

You need to bind it to popupafteropen.

$(".selector").on("popupafteropen", function () {
    $(this).popup("reposition", {
        "positionTo": "window",
        // orx: 100,
        y: 200
    });
});

Demo

Post a Comment for "How Do I Update The Position Of A Jquery Mobile Global Popup?"