Class: Browser::DOM::Element::Size

Inherits:
Object
  • Object
show all
Includes:
Native::Wrapper
Defined in:
opal/browser/dom/element/size.rb

Instance Attribute Summary collapse

Instance Attribute Details

#client_heightInteger

Returns the content-box height of an element.

Returns:

  • (Integer)

    the content-box height of an element



37
# File 'opal/browser/dom/element/size.rb', line 37

alias_native :client_height, :clientHeight

#client_widthInteger

Returns the content-box width of an element.

Returns:

  • (Integer)

    the content-box width of an element



33
# File 'opal/browser/dom/element/size.rb', line 33

alias_native :client_width, :clientWidth

#elementObject (readonly)

Returns the value of attribute element.



6
7
8
# File 'opal/browser/dom/element/size.rb', line 6

def element
  @element
end

#heightInteger

Returns the element height.

Returns:

  • (Integer)

    the element height



25
# File 'opal/browser/dom/element/size.rb', line 25

alias_native :height, :offsetHeight

#widthInteger

Returns the element width.

Returns:

  • (Integer)

    the element width



17
# File 'opal/browser/dom/element/size.rb', line 17

alias_native :width, :offsetWidth