Node~dimensions Class
Functions for measuring the size of a node.
Item Index
Methods
emToPx
(
Number
static
-
em_count
Parameters:
-
em_count
Numberthe number of em's to convert (defaults to 1)
Returns:
Number:
the size of one em in pixels
horizMarginBorderPadding
()
Number
Returns:
Number:
the width of everything surrounding the element's content
insideHeight
()
Number
Returns:
Number:
the available height inside the widget. (Padding is included in clientHeight.)
insideWidth
()
Number
Returns:
Number:
the available width inside the widget. (Padding is included in clientWidth.)
parseDimensionStyle
(
Number
-
style
Parameters:
-
style
Stringthe style to parse
Returns:
Number:
the size of the style in pixels
totalHeight
()
Number
Returns:
Number:
the total height used by the element, including margin, border, and padding (Margin is not included in offsetHeight.)