|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--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:
|
<static> Object
|
windowDimensions()
Returns object with two properties:
|
<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 |
<static> Object _offsetParent
<static> Object includeScrollOffsets
<static> Object Point
<static> Object Rect
Constructor Detail |
Position()
Method Detail |
<static> Object absolutize(element)
<static> Object calculateZIndex(element)
element
- Element object or id.
<static> void center(element)
element
- Element object or id.
<static> void centerInWindow(element)
element
- Element object or id.
<static> Object clone(source, target, options)
<static> Object cumulativeOffset(tagName, attributes)
<static> void expandToWindowBottom(element)
element
- Element object or id (element must have an id).
<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)
element
- Element to popup.
options
- Map of options:
<static> void prepare()
<static> Object realOffset(tagName, attributes)
<static> Object relativize(element)
<static> void scrollOffsets()
<static> Object windowDimensions()
<static> Object within(element, x, y)
<static> Object withinIncludingScrolloffsets(element, x, y, xfudge, yfudge)
element
- Element to determine if point (x,y) lies within.
x
- Point horizontal coordinate.
y
- Point vertical coordinate.
xfudge
- (optional) Horizontal fudge factor (defaults to zero).
yfudge
- (optional) Vertical fudge factor (defaults to xfudge).
|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |