Deprecated back compatibility module, new code should use dijit/place directly instead of using this module.
See the dijit/_base/place reference documentation for more information.
Deprecated method, unneeded when using dijit/place directly. Transforms the passed array of preferred positions into a format suitable for passing as the aroundCorners argument to dijit/place.placeOnScreenAroundElement.
Parameter | Type | Description |
---|---|---|
position | String[] | This variable controls the position of the drop down. It's an array of strings with the following values:
The list is positions is tried, in order, until a position is found where the drop down fits within the viewport. |
leftToRight | Boolean | Whether the popup will be displaying in leftToRight mode. |
Deprecated method to return the dimensions and scroll position of the viewable area of a browser window. New code should use windowUtils.getBox()
Positions node kitty-corner to the rectangle centered at (pos.x, pos.y) with width and height of padding.x 2 and padding.y 2, or zero if padding not specified. Picks first corner in corners[] where node is fully visible, or the corner where it's most visible.
Node is assumed to be absolutely or relatively positioned.
Parameter | Type | Description |
---|---|---|
node | DOMNode | The node to position |
pos | dijit/place.__Position | Object like {x: 10, y: 20} |
corners | String[] | Array of Strings representing order to try corners of the node in, like ["TR", "BL"]. Possible values are:
|
padding | dijit/place.__Position |
Optional Optional param to set padding, to put some buffer around the element you want to position. Defaults to zero. |
layoutNode | undefined | For things like tooltip, they are displayed differently (and have different dimensions) based on their orientation relative to the parent. This adjusts the popup based on orientation. |
Try to place node's top right corner at (10,20). If that makes node go (partially) off screen, then try placing bottom left corner at (10,20).
place(node, {x: 10, y: 20}, ["TR", "BL"])
Like dijit.placeOnScreenAroundNode(), except it accepts an arbitrary object for the "around" argument and finds a proper processor to place a node. Deprecated, new code should use dijit/place.around() instead.
Parameter | Type | Description |
---|---|---|
node | undefined | |
aroundNode | undefined | |
aroundCorners | undefined | |
layoutNode | undefined |
Position node adjacent or kitty-corner to aroundNode such that it's fully visible in viewport. Deprecated, new code should use dijit/place.around() instead.
Parameter | Type | Description |
---|---|---|
node | undefined | |
aroundNode | undefined | |
aroundCorners | undefined | |
layoutNode | undefined |
Like dijit.placeOnScreenAroundNode(), except that the "around" parameter is an arbitrary rectangle on the screen (x, y, width, height) instead of a dom node. Deprecated, new code should use dijit/place.around() instead.
Parameter | Type | Description |
---|---|---|
node | undefined | |
aroundRect | undefined | |
aroundCorners | undefined | |
layoutNode | undefined |