I have a prototype class that shows a div and resizes it to the size
of the client browser. What I would like to happen when the div is
shown is to attach an event that listens to the window and resizes/
moves the div if the client resizes/scrolls the browser window. Below
is what I have for the show function, as it is right now the 'scroll'
and 'resize' events are not being wired up. Am I doing something

        Show: function()
                Event.observe(window, 'scroll', this.resetSizes);
                Event.observe(window, 'resize', this.resetSizes);

                        this.Container.style.display = 'table';
                catch (e)
                        this.Container.style.display = '';

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to