I managed to install in IE 10 (update, then close, so a little flicker) by calling:
$("#datepicker").datepicker("hide");
in the function called when the div is closed (in this brief example, you select the side of the div when you return to the window). Example fiddle here: http://jsfiddle.net/anyuG/
To reproduce the behavior you described for IE 10, simply comment out this line in the disablepopup() function, and you can play the datepicker orphan axis window. If you post your actual example as a violin, we can work with that.
Grabbed a popup example here: http://istockphp.com/jquery/creating-popup-div-with-jquery/
UPDATE
Another way to deal with this and it looks a little better is to make the user $(window).blur() and $(window).focus() . It looks good, in my opinion, pay attention to closing the window and will open again if you click in the white box and open again, but everything is close to each other if you click outside the white box:
$(window).blur(function(e) { $("#datepicker").datepicker("hide"); });
Updated violin. Play with .focus() to determine the best combo for your preference, and you should be good. You may also want to detect only IE 10 and run this code only in that browser.
Fiddle: http://jsfiddle.net/78252/1/
source share