#46 new
Stephen Elson

Mask and Overlay should be context-aware

Reported by Stephen Elson | July 17th, 2009 @ 02:36 PM | in 2.0

It would be useful if glow.widgets.Mask and glow.widgets.Overlay responded to an element specified as a 'context' option with the following behaviour:

  • Mask: the mask would only extend to cover the context element e.g. an image
  • Overlay (and Panel): the Overlay would open centred on top of the context. If a context is specified and the overlay is modal then the context is passed through to the Mask so a localised lightbox is created.

Here's a diff of mask.js, overlay.js showing an example implementation.

I've also attached an example file using this which seems to work in Opera 9.50, IE6, Chrome 0.2, Safari 3.1 Win, FF 2, FF 3 but obviously there are lots of conditions that you know about and I don't.

(Reported by Andrew Nicolaou)

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