#100 accepted
Jake Archibald

Mask: Won't shrink in IE

Reported by Jake Archibald | August 18th, 2009 @ 04:11 PM | in 2.0

One of the values the mask needs to take into consideration is the scrollWidth & scrollHeight. However, if you make the window larger (beyond the size of the content) then smaller, the mask does not shrink in IE.

This is because IE does not update the scrollWidth / Height properties until it redraws, so the Mask itself is included in the size of the document. Once the Mask has become bigger, it cannot become smaller as it is included in the measurement of the document size.

To fix this, we need to take a new approach to how the mask is drawn. It would probably be faster if the mask were the size of the window and position:fixed. However, this won't do for IE6. We could update the position onScroll, but we need to watch out for flickring. An overscan on the mask element may cater for this, but we need to think about potential backwards compatibility issues with this.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A JavaScript Library

Shared Ticket Bins

People watching this ticket

Pages