Modal Windows under IE

77 views
Skip to first unread message

Shawn Hempel

unread,
Jan 9, 2012, 1:23:06 PM1/9/12
to livepipe...@googlegroups.com
The Modal Window control is very near perfect for what I'm trying to accomplish. However, it appears to completely fall down when used from any version of Internet Explorer. At first I thought it was an issue with my implementation, but then I visited the demo site under IE9 and saw similar failures.

Click on the Modal Window sample with IE9 produces this:
image.png

Versus what it should look like (per Chrome):
image.png

Has anyone had success getting the Modal Window control to work (at all) with IE browsers?
image.png
image.png

Shawn Hempel

unread,
Jan 9, 2012, 1:50:41 PM1/9/12
to livepipe...@googlegroups.com
I was able to work out a fix for my needs quite easily; I just removed the IE-specific code from window.js.

I'm not sure why this is in there, but we may want to consider removing it as it seems to break the overlay (at least in IE 8 and IE 9):

window.js (707-712):

        if(Prototype.Browser.IE){
            Control.Overlay.container.setStyle(Control.Overlay.getIeStyles());
            Event.observe(window,'scroll',Control.Overlay.positionOverlay);
            Event.observe(window,'resize',Control.Overlay.positionOverlay);
            Control.Overlay.observe('beforeShow',Control.Overlay.positionOverlay);
        }else

Once those lines are gone, there are no more calls to getIeStyles or positionOverlay, so those properties and all references to them can be removed as well.


On Mon, Jan 9, 2012 at 10:23 AM, Shawn Hempel <sh...@subtext.com> wrote:
The Modal Window control is very near perfect for what I'm trying to accomplish. However, it appears to completely fall down when used from any version of Internet Explorer. At first I thought it was an issue with my implementation, but then I visited the demo site under IE9 and saw similar failures.

Reply all
Reply to author
Forward
0 new messages