[Project_owners] Question - when are boxObject values valid?

Ed Anuff ed at anuff.com
Tue Jun 21 11:33:03 EDT 2005

I am using XBL extensively, but I haven't modified the original Mozilla
bindings, if that's what you mean.  The overall page is a XUL window
with a number of XBL-based elements in it.  The window has two stack
elements and an iframe.  There appear to be only two elements which are
getting the strange boxObject coordinates and those are, suspiciously,
the first child elements of each stack element.  I'm trying to create a
simple testcase that shows the problem but I 'm trying to get a better
picture of what is actually happening in order to create the cleanest

Also, are you saying it's actually possible for the load event to fire
before the constructor?  I don't think that's what's happening in this
case because I'm adding the load event listening in the XBL constructor.



-----Original Message-----
From: project_owners-bounces at mozdev.org
[mailto:project_owners-bounces at mozdev.org] On Behalf Of Michael Vincent
van Rantwijk
Sent: Tuesday, June 21, 2005 9:28 AM
To: project_owners at mozdev.org
Subject: Re: [Project_owners] Question - when are boxObject values

Ed Anuff wrote:
> That was my original point - why would the boxObject have incorrect
> values at load event time?
> Ed

Have you checked the order i.e. is the load event fired *after* the 

Do you use modified XBL bindings, in your source code, or do you have 
extensions installed that might cause you trouble?

Note that I have been debugging two extensions recently, simply because 
they broke MultiZilla, and the result was that Title Tweaks and the 
GoogleBox had bugs that broke our constructors and load event!

Btw, a XUL testcase would be handy,
Project_owners mailing list
Project_owners at mozdev.org

More information about the Project_owners mailing list