Dan Baumbach

I've developed a number of modal dialogs with IE 6. The controls in them are positioned with style="position:absolute".

Their placement is fine with IE 6 but with IE 7 the controls are positioned so far to the left that they are off the screen. I have an asp Panel control positioned at left:0px and all I can see of it is a piece of the right scroll bar against the left border of the modal dialog. If I position it at left:200px, I can begin to see all of it.

When this is run under IE 6 the table is positioned properly. I've reread the documentation on window.showModalDialog() and I can't find anything that describes this behavior. It makes no difference if the dialog is centered or not.

Is this a bug in IE 7 or is there something I'm not doing properly. Everything seems to work fine with window.open().

-Dan.


Re: Internet Explorer Web Development window.showModalDialog() controls are misplaced with IE 7

Dan Baumbach

I I have scroll:no set. I just discovered that if I change that to yes then the dialog opens scrolled entirely to the right I can scroll my controlls into view.

- Dan.




Re: Internet Explorer Web Development window.showModalDialog() controls are misplaced with IE 7

Dan Baumbach

I've fixed this problem by adding window.scrollTo(0,0) in the function that call on the dialog load. Not a big deal but this should be unnecessary. This is brain dead behavior in IE 7.

- Dan.