How to get the actual width and height of XUL elements?

I want to get the actual width of the element <xul:hbox>for presentation. How can I get it? I see that the HTML element has an offsetWidth attribute, but I cannot find this attribute in the XUL element

+3
source share
1 answer

Using element.getBoundingClientRect () or laterelement.boxObject.width .

+5
source

Source: https://habr.com/ru/post/1727184/


All Articles