jquery ui dialog change position after first click

Posted by user1958218 on Stack Overflow See other posts from Stack Overflow or by user1958218
Published on 2013-06-27T04:12:50Z Indexed on 2013/06/27 4:21 UTC
Read the original article Hit count: 101

Filed under:
|
|

I am using jquery uimodaldialog and this is setting

$("#dialog").dialog({
    autoOpen : false,
    minWidth : 700,
    show : {
        effect : "fade",
        duration : 1000
           },
    hide : {
        effect : "fade",
        duration : 1000
           },
    close : function(event, ui) {
    },
});

I am calling with this

 $('.mylink').on('click', function() {
 $( "#dialog" ).dialog( "open");

Now on first click it shows at center of page .

if I click again then it goes about 200px upwards.

On further clicking it says there

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui