Click here to Skip to main content
15,916,318 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I using Bootstrap v3.3.4 version, I want to prevent model move out of window. I try with below code for fix drag area for dialog but it not working.


DRAG AND RESIZE BOOTSTRAP MODAL - Plunker[^]

this example but dialog moveing out side window so I want to prevent it.

can any help me this?

What I have tried:

$("[role=dialog]").draggable({
            handle: ".modal-header",
            containment: "window"
        });
Posted
Updated 13-Jun-18 1:05am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900