Is there any possibility to fix the modal window for jQuery UI, so when the user is using the scroller on the right side, the side behind scrolls, but the modal window is staying fix?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create a css class with the fixed position:
Then append the class as part of the options when you create the dialog:
Here is a working Example: http://jsfiddle.net/3hrSv/
The example is not too flashy because I couldn’t get jsfiddle to style the dialog.
If you would like to center the dialog in the middle of the screen try setting
top:50%; left:50%;in your css as suggested by: http://css-tricks.com/320-quick-css-trick-how-to-center-an-object-exactly-in-the-center/