Overlay left is incorrect on IE 6 and 7

deviantintegral - June 1, 2009 - 02:21
Project:Popups API (Ajax Dialogs)
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

If you're using popups with a fixed width theme, Internet Explorer 6 and 7 will display the overlay with the left of your container element. For example:

<body>
<div id="popups-overlay"></div>
<div id="fixed-container"></div>
</body>

#popups-overlay's left will be wherever the container is calculated from the width: auto; declaration.

The attached patch fixes this issue by detecting IE 6/7 and manually setting the left to 0. IE8 fixed this bug, so it's not needed there.

Enjoy!

AttachmentSize
fix_overlay_left_ie.patch786 bytes
IE7 Popup Left bug before.png484.04 KB
IE7 Popup Left bug after.png481.61 KB

#1

timtrinidad - August 13, 2009 - 15:47
Status:needs review» reviewed & tested by the community

Works for me!

 
 

Drupal is a registered trademark of Dries Buytaert.