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_height ⇒ Integer

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_width ⇒ Integer

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

#element ⇒ Object (readonly)

Returns the value of attribute element.



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

def element
  @element
end

#height ⇒ Integer

Returns the element height.

Returns:

  • (Integer) —

    the element height



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

alias_native :height, :offsetHeight

#width ⇒ Integer

Returns the element width.

Returns:

  • (Integer) —

    the element width



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

alias_native :width, :offsetWidth