Possible position bug and page jump on close

Possible position bug and page jump on close

Hi,

I might have found a problem with the .position method, but I wanted to see if anyone had any ideas.

I have a jsfiddle example here with instructions:  jsFiddle

This is just a test to show it happening, but it seems that if you move a dialog with the .position method then when that dialog is closed with the 'X', the page jumps back to the first position of the dialog, if scollbars are on the page and you've moved it to a position where the original is not in view.

It seems to only do this if you have the autoOpen set to false also.

Any ideas?

The only way I seemed to be able to 'fix' it would be to destroy and re-create the dialog every time, which fixed it but it causes a slight flicker etc on Safari mobile when its within view, which I dont like. Also, its using more CPU resources to have to recreate it all the time.

Thanks,

Rob Donovan.