On Jun 26, 1:27 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > When a document is undergoing mutation via DOM manipulation, is there > > a way to get the up to date element coordinates? > > Yes. Just get the coordinates. > > > In another word, can following pseudo code give me the correct coordinates? > > Yes, if by "correct" you mean "as of right now". > > -Boris
Thanks. That makes me feel better:) I see what you were saying. But how big of the chance will I run into that the coordinates I get is before the reflow, or worse, a zero width point outside of the screen? The thing I am trying to do is to place a flashing icon by the corner of newly created element. So it's essential to have the "right" coordinates. It's fine I can only get "as of right now" coordinates at the beginning. Only if there is a way for me to update them sometime later accordingly. What do you suggest for how to handle this async task? _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

