CAF Shared JavaScript

Class Position

Object
   |
   +--Position

class Position

Defined in prototype.js


Field Summary
<static>  Object _offsetParent
          Fix prototype's Position.offsetParent() to not screw up when element is BODY, HTML, or #document.
<static>  Object includeScrollOffsets
          
<static>  Object Point
          
<static>  Object Rect
          Rectangle with left, top, right, and bottom properties.
 
Constructor Summary
Position ()
           
 
Method Summary
<static> Object absolutize(element)
          
<static> Object calculateZIndex(element)
           Calculates the z-index for the specified element, caching for later lookup.
<static> void center(element)
           Centers the specified element horizontally and vertically within its parent container.
<static> void centerInWindow(element)
           Centers the specified element horizontally and vertically within the window.
<static> Object clone(source, target, options)
          
<static> Object cumulativeOffset(tagName, attributes)
          
<static> void expandToWindowBottom(element)
           Expands the specified element vertically to the bottom of the window.
<static> Object offsetParent(tagName, attributes)
          
<static> Object overlap(mode, element)
          
<static> Object page(tagName, attributes)
          
<static> Object positionedOffset(tagName, attributes)
          
<static> void positionPopup(element, options)
           Position popup element just below specified target, ready to be displayed (but doesn't actually show the popup element).
<static> void prepare()
          
<static> Object realOffset(tagName, attributes)
          
<static> Object relativize(element)
          
<static> void scrollOffsets()
           Returns object with two properties:
x
horizontal scroll offset
y
vertical scroll offset
<static> Object windowDimensions()
           Returns object with two properties:
x
window width
y
window height
<static> Object within(element, x, y)
          
<static> Object withinIncludingScrolloffsets(element, x, y, xfudge, yfudge)
           Override prototype's Position.withinIncludingScrolloffsets() to include optional fudge factor.

Field Detail

_offsetParent

<static> Object _offsetParent

includeScrollOffsets

<static> Object includeScrollOffsets

Point

<static> Object Point

Rect

<static> Object Rect

Constructor Detail

Position

Position()

Method Detail

absolutize

<static> Object absolutize(element)

calculateZIndex

<static> Object calculateZIndex(element)

center

<static> void center(element)

centerInWindow

<static> void centerInWindow(element)

clone

<static> Object clone(source, target, options)

cumulativeOffset

<static> Object cumulativeOffset(tagName, attributes)

expandToWindowBottom

<static> void expandToWindowBottom(element)

offsetParent

<static> Object offsetParent(tagName, attributes)

overlap

<static> Object overlap(mode, element)

page

<static> Object page(tagName, attributes)

positionedOffset

<static> Object positionedOffset(tagName, attributes)

positionPopup

<static> void positionPopup(element, options)

prepare

<static> void prepare()

realOffset

<static> Object realOffset(tagName, attributes)

relativize

<static> Object relativize(element)

scrollOffsets

<static> void scrollOffsets()

windowDimensions

<static> Object windowDimensions()

within

<static> Object within(element, x, y)

withinIncludingScrolloffsets

<static> Object withinIncludingScrolloffsets(element, x, y, xfudge, yfudge)

CAF Shared JavaScript

Documentation generated by JSDoc on Sun Sep 15 20:21:18 2019