John J. Barton wrote:
I can use DOMNodeInserted to see elements put in, but I must be doing this 'too soon', because the script panel logic decides the panel has clientHeight zero, no room for any source lines.

I am running in the load handler for the window; the script panel is in a browser:
  window
    browser
      document
        div <-- clientHeight 0

Unless there's something wacky going on, by the time that load handler runs you should be able to get the correct clientHeight. Is it possible to create a XUL file (small extension, or standalone XUL even better) that shows the problem?

That said, what's the markup of that document containing the <div>? Maybe 0 is the right height for that markup?

If I set a load handler on the browser from within the load handler for the window, it never fires. I assume that means the load is already complete.

Yeah; the onload for the window should wait for the browser onload if the browser's src attribute is set in the markup.

-Boris
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to