There is no "onresize" event on the DIV to subscribe to.  The best you could probably do is to create a custom signal that you trigger whenever it is resized programatically and is linked to the window's "onresize."

On 7/3/06, beckie <[EMAIL PROTECTED]> wrote:

I've a DIV that uses percentages for its width and height. Now I want
to "connect" to it based on the onresize event. Is that possible?

The DIV gets resized when the entire browser-window is resized, but the
width and height of the DIV can also be manipulated programmatically.

When the entire browser-window is resized, I use this:

connect(window, "onresize", function() { ... })

But how can I connect to other ways of resizing the DIV?

#myDIV {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 30%;
  height: 40%;
}




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to