some problems with UI dialog

some problems with UI dialog

Rcently i am developing a small project with jquery, inside i used the existing UI dialog, but i found some problems during the development.

1. the dialog shows normal in firefox but abnormal in ie9, then debug it in ie9, found the global variable window got problem that attribute width and height is zero, i don't know the reason why occur such strange problem.

2. I used the tag iframe to display sub-screen, but inside the iframe the variable document & window is only available inside the iframe, so the location of displayed dialog is base on the sub-window inside iframe, so what can i do that dislog will show base parent window?