views:

116

answers:

1

I wanna get the actual width of a element for presentation. How can I get it? I see HTML element has offsetWidth attribute but I can't find this attribute in XUL element

+2  A: 

Using element.getBoundingClientRect() or the older element.boxObject.width.

Nickolay