X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/source/widgets/layout/AbsoluteLayout.js diff --git a/source/widgets/layout/AbsoluteLayout.js b/source/widgets/layout/AbsoluteLayout.js deleted file mode 100644 index 7c090ee4..00000000 --- a/source/widgets/layout/AbsoluteLayout.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Ext JS Library 2.2.1 - * Copyright(c) 2006-2009, Ext JS, LLC. - * licensing@extjs.com - * - * http://extjs.com/license - */ - -/** - * @class Ext.layout.AbsoluteLayout - * @extends Ext.layout.AnchorLayout - *

Inherits the anchoring of {@link Ext.layout.AnchorLayout} and adds the ability for x/y positioning using the - * standard x and y component config options.

- */ -Ext.layout.AbsoluteLayout = Ext.extend(Ext.layout.AnchorLayout, { - /** - * @cfg {String} extraCls - * An optional extra CSS class that will be added to the container (defaults to 'x-abs-layout-item'). This can be useful for - * adding customized styles to the container or any of its children using standard CSS rules. - */ - extraCls: 'x-abs-layout-item', - isForm: false, - // private - setContainer : function(ct){ - Ext.layout.AbsoluteLayout.superclass.setContainer.call(this, ct); - if(ct.isXType('form')){ - this.isForm = true; - } - }, - - onLayout : function(ct, target){ - if(this.isForm){ ct.body.position(); } else { target.position(); } - Ext.layout.AbsoluteLayout.superclass.onLayout.call(this, ct, target); - }, - - // private - getAnchorViewSize : function(ct, target){ - return this.isForm ? ct.body.getStyleSize() : Ext.layout.AbsoluteLayout.superclass.getAnchorViewSize.call(this, ct, target); - }, - - // private - isValidParent : function(c, target){ - return this.isForm ? true : Ext.layout.AbsoluteLayout.superclass.isValidParent.call(this, c, target); - }, - - // private - adjustWidthAnchor : function(value, comp){ - return value ? value - comp.getPosition(true)[0] : value; - }, - - // private - adjustHeightAnchor : function(value, comp){ - return value ? value - comp.getPosition(true)[1] : value; - } - /** - * @property activeItem - * @hide - */ -}); -Ext.Container.LAYOUTS['absolute'] = Ext.layout.AbsoluteLayout; \ No newline at end of file