Fix IE8 putting the dialog behind its parent window.

fixes #3423