+++ /dev/null
-/*\r
- * Ext JS Library 2.2.1\r
- * Copyright(c) 2006-2009, Ext JS, LLC.\r
- * licensing@extjs.com\r
- * \r
- * http://extjs.com/license\r
- */\r
-\r
-/**\r
- * @class Ext.layout.AbsoluteLayout\r
- * @extends Ext.layout.AnchorLayout\r
- * <p>Inherits the anchoring of {@link Ext.layout.AnchorLayout} and adds the ability for x/y positioning using the\r
- * standard x and y component config options.</p>\r
- */\r
-Ext.layout.AbsoluteLayout = Ext.extend(Ext.layout.AnchorLayout, {\r
- /**\r
- * @cfg {String} extraCls\r
- * An optional extra CSS class that will be added to the container (defaults to 'x-abs-layout-item'). This can be useful for\r
- * adding customized styles to the container or any of its children using standard CSS rules.\r
- */\r
- extraCls: 'x-abs-layout-item',\r
- isForm: false,\r
- // private\r
- setContainer : function(ct){\r
- Ext.layout.AbsoluteLayout.superclass.setContainer.call(this, ct);\r
- if(ct.isXType('form')){\r
- this.isForm = true;\r
- }\r
- },\r
-\r
- onLayout : function(ct, target){\r
- if(this.isForm){ ct.body.position(); } else { target.position(); }\r
- Ext.layout.AbsoluteLayout.superclass.onLayout.call(this, ct, target);\r
- },\r
-\r
- // private\r
- getAnchorViewSize : function(ct, target){\r
- return this.isForm ? ct.body.getStyleSize() : Ext.layout.AbsoluteLayout.superclass.getAnchorViewSize.call(this, ct, target);\r
- },\r
-\r
- // private\r
- isValidParent : function(c, target){\r
- return this.isForm ? true : Ext.layout.AbsoluteLayout.superclass.isValidParent.call(this, c, target);\r
- },\r
-\r
- // private\r
- adjustWidthAnchor : function(value, comp){\r
- return value ? value - comp.getPosition(true)[0] : value;\r
- },\r
-\r
- // private\r
- adjustHeightAnchor : function(value, comp){\r
- return value ? value - comp.getPosition(true)[1] : value;\r
- }\r
- /**\r
- * @property activeItem\r
- * @hide\r
- */\r
-});\r
-Ext.Container.LAYOUTS['absolute'] = Ext.layout.AbsoluteLayout;
\ No newline at end of file