Re: How to track position/size change of an element?

stony_dreams <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Hi,

A better way is to attach the DOMAttrModified event handler to your DOM. You
would get notified everytime an attribute value gets changed.

HTH,


[email protected] wrote:
> 
> I am attaching a small icon via absolutely positioned anonymous DIV to
> certain special elements on my page. Now the page itself might be
> modified by DOM manipulation (mostly by CSS and JavaScript), which
> causes the reflow and potential position and size changes for these
> elements. My question is what is the best way to listen for this? I
> tried "DOMSubtreeModified" event on BODY and it seemed to work.
> However, there are way too many events generated and most of them are
> garbage. Does anyone know a better way of doing it? Please help.
> Thanks.
> _______________________________________________
> dev-tech-dom mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-dom
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-track-position-size-change-of-an-element--tp16263354p16825916.html
Sent from the Mozilla - DOM mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.