<html>\r
<head>\r
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> \r
<title>The source code</title>\r
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
me.setBounds(box.x, box.y, w, h, me.animTest.call(me, arguments, animate, 2));\r
return me;\r
},\r
- \r
+\r
<div id="method-Ext.Element-getBox"></div>/**\r
- * Return a box {x, y, width, height} that can be used to set another elements\r
- * size/location to match this element.\r
+ * Return an object defining the area of this Element which can be passed to {@link #setBox} to\r
+ * set another Element's size/location to match this element.\r
* @param {Boolean} contentBox (optional) If true a box for the content of the element is returned.\r
* @param {Boolean} local (optional) If true the element's left and top are returned instead of page x/y.\r
- * @return {Object} box An object in the format {x, y, width, height}\r
+ * @return {Object} box An object in the format<pre><code>\r
+{\r
+ x: <Element's X position>,\r
+ y: <Element's Y position>,\r
+ width: <Element's width>,\r
+ height: <Element's height>,\r
+ bottom: <Element's lower bound>,\r
+ right: <Element's rightmost bound>\r
+}\r
+</code></pre>\r
+ * The returned object may also be addressed as an Array where index 0 contains the X position\r
+ * and index 1 contains the Y position. So the result may also be used for {@link #setXY}\r
*/\r
getBox : function(contentBox, local) { \r
var me = this,\r