I have a JQuery dialog box that is set to
position: 'center'
Now I run a database query and return a long list of records, and each record has an "edit" button. If I scroll down the page and click the edit button for the record jquery pops open my dialog and centers the dialog based on the scroll position, but it also reset the page scroll back to the top, so now the dialog is no longer centered.
So my questions are,
Can I stop Jquery from resetting my scroll position when the dialog opens?
How do I set the postion to center without using the 'center' keyword?