void
align
(
elementAlign
,
contextAlign
)
Aligns the Overlay to its context element using the specified corner points (represented by the constants TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, and BOTTOM_RIGHT.
- Parameters:
-
elementAlign <String>
The String representing the corner of the Overlay that should be aligned to the context element
-
contextAlign <String>
The corner of the context element that the elementAlign corner should stick to.
- Returns:
void
void
center
(
)
Centers the container in the viewport.
void
configConstrainToViewport
(
type
,
args
,
obj
)
The default event handler fired when the "constraintoviewport" property is changed.
- Parameters:
-
type <String>
The CustomEvent type (usually the property name)
-
args <Object[]>
The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-
obj <Object>
The scope object. For configuration handlers, this will usually equal the owner.
- Returns:
void
void
configContext
(
type
,
args
,
obj
)
The default event handler fired when the "context" property is changed.
- Parameters:
-
type <String>
The CustomEvent type (usually the property name)
-
args <Object[]>
The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-
obj <Object>
The scope object. For configuration handlers, this will usually equal the owner.
- Returns:
void
void
configFixedCenter
(
type
,
args
,
obj
)
The default event handler fired when the "fixedcenter" property is changed.
- Parameters:
-
type <String>
The CustomEvent type (usually the property name)
-
args <Object[]>
The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-
obj <Object>
The scope object. For configuration handlers, this will usually equal the owner.
- Returns:
void
void
configHeight
(
type
,
args
,
obj
)
The default event handler fired when the "height" property is changed.
- Parameters:
-
type <String>
The CustomEvent type (usually the property name)
-
args <Object[]>
The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-
obj <Object>
The scope object. For configuration handlers, this will usually equal the owner.
- Returns:
void
void
configIframe
(
type
,
args
,
obj
)
The default event handler fired when the "iframe" property is changed.
- Parameters:
-
type <String>
The CustomEvent type (usually the property name)
-
args <Object[]>
The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-
obj <Object>
The scope object. For configuration handlers, this will usually equal the owner.
- Returns:
void
void
configVisible
(
type
,
args
,
obj
)
The default event handler fired when the "visible" property is changed. This method is responsible for firing showEvent and hideEvent.
- Parameters:
-
type <String>
The CustomEvent type (usually the property name)
-
args <Object[]>
The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-
obj <Object>
The scope object. For configuration handlers, this will usually equal the owner.
- Returns:
void
void
configWidth
(
type
,
args
,
obj
)
The default event handler fired when the "width" property is changed.
- Parameters:
-
type <String>
The CustomEvent type (usually the property name)
-
args <Object[]>
The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-
obj <Object>
The scope object. For configuration handlers, this will usually equal the owner.
- Returns:
void
void
configX
(
type
,
args
,
obj
)
The default event handler fired when the "x" property is changed.
- Parameters:
-
type <String>
The CustomEvent type (usually the property name)
-
args <Object[]>
The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-
obj <Object>
The scope object. For configuration handlers, this will usually equal the owner.
- Returns:
void
void
configXY
(
type
,
args
,
obj
)
The default event handler fired when the "xy" property is changed.
- Parameters:
-
type <String>
The CustomEvent type (usually the property name)
-
args <Object[]>
The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-
obj <Object>
The scope object. For configuration handlers, this will usually equal the owner.
- Returns:
void
void
configY
(
type
,
args
,
obj
)
The default event handler fired when the "y" property is changed.
- Parameters:
-
type <String>
The CustomEvent type (usually the property name)
-
args <Object[]>
The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-
obj <Object>
The scope object. For configuration handlers, this will usually equal the owner.
- Returns:
void
void
configzIndex
(
type
,
args
,
obj
)
The default event handler fired when the "zIndex" property is changed.
- Parameters:
-
type <String>
The CustomEvent type (usually the property name)
-
args <Object[]>
The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-
obj <Object>
The scope object. For configuration handlers, this will usually equal the owner.
- Returns:
void
void
destroy
(
)
Removes the Overlay element from the DOM and sets all child elements to null.
void
doCenterOnDOMEvent
(
)
Center event handler used for centering on scroll/resize, but only if the Overlay is visible
void
enforceConstraints
(
type
,
args
,
obj
)
The default event handler executed when the moveEvent is fired, if the "constraintoviewport" is set to true.
- Parameters:
-
type <String>
The CustomEvent type (usually the property name)
-
args <Object[]>
The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-
obj <Object>
The scope object. For configuration handlers, this will usually equal the owner.
- Returns:
void
void
hideIframe
(
)
Hides the iframe shim, if it has been enabled
void
hideMacGeckoScrollbars
(
)
Adds a special CSS class to the Overlay when Mac/Gecko is in use, to work around a Gecko bug where
scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435
void
init
(
el
,
userConfig
)
The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
- Parameters:
-
el <String>
The element ID representing the Overlay OR
-
el <HTMLElement>
The element representing the Overlay
-
userConfig <Object>
The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details.
- Returns:
void
void
initDefaultConfig
(
)
Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg).
void
initEvents
(
)
Initializes the custom events for Overlay which are fired automatically at appropriate times by the Overlay class.
void
moveTo
(
x
,
y
)
Moves the Overlay to the specified position. This function is identical to calling this.cfg.setProperty("xy", [x,y]);
- Parameters:
-
x <Number>
The Overlay's new x position
-
y <Number>
The Overlay's new y position
- Returns:
void
void
onDomResize
(
e
,
obj
)
Event handler fired when the resize monitor element is resized.
- Parameters:
-
e <DOMEvent>
The resize DOM event
-
obj <Object>
The scope object
- Returns:
void
void
showIframe
(
)
Shows the iframe shim, if it has been enabled
void
showMacGeckoScrollbars
(
)
Removes a special CSS class from the Overlay when Mac/Gecko is in use, to work around a Gecko bug where
scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435
void
syncPosition
(
)
Synchronizes the Panel's "xy", "x", and "y" properties with the Panel's position in the DOM. This is primarily used to update position information during drag & drop.
String
toString
(
)
Returns a String representation of the object.
- Returns:
String
- The string representation of the Overlay.
static
void
YAHOO.widget.Overlay.windowResizeHandler
(
e
)
The DOM event handler used to fire the CustomEvent for window resize
- Parameters:
-
e <DOMEvent>
The DOM resize event
- Returns:
void
static
void
YAHOO.widget.Overlay.windowScrollHandler
(
e
)
The DOM event handler used to fire the CustomEvent for window scroll
- Parameters:
-
e <DOMEvent>
The DOM scroll event
- Returns:
void