I have a jQuery dialog box that is meant to position in the middle of the screen. However, it seems slightly off-center vertically.
Here is the code:
This is how I solved the issue, I added this open function of the dialog:
open: function () { $('.ui-dialog').css("top","0px"); }
This now opens the dialog at the top of the screen, no matter where the page is scrolled to and in all browsers.