3
* Copyright(c) 2006-2008, Ext JS, LLC.
6
* http://extjs.com/license
10
* @class Ext.layout.AbsoluteLayout
11
* @extends Ext.layout.AnchorLayout
12
* <p>Inherits the anchoring of {@link Ext.layout.AnchorLayout} and adds the ability for x/y positioning using the
13
* standard x and y component config options.</p>
15
Ext.layout.AbsoluteLayout = Ext.extend(Ext.layout.AnchorLayout, {
16
extraCls: 'x-abs-layout-item',
19
setContainer : function(ct){
20
Ext.layout.AbsoluteLayout.superclass.setContainer.call(this, ct);
21
if(ct.isXType('form')){
26
onLayout : function(ct, target){
27
if(this.isForm){ ct.body.position(); } else { target.position(); }
28
Ext.layout.AbsoluteLayout.superclass.onLayout.call(this, ct, target);
32
getAnchorViewSize : function(ct, target){
33
return this.isForm ? ct.body.getStyleSize() : Ext.layout.AbsoluteLayout.superclass.getAnchorViewSize.call(this, ct, target);
37
isValidParent : function(c, target){
38
return this.isForm ? true : Ext.layout.AbsoluteLayout.superclass.isValidParent.call(this, c, target);
42
adjustWidthAnchor : function(value, comp){
43
return value ? value - comp.getPosition(true)[0] : value;
47
adjustHeightAnchor : function(value, comp){
48
return value ? value - comp.getPosition(true)[1] : value;
51
* @property activeItem
55
Ext.Container.LAYOUTS['absolute'] = Ext.layout.AbsoluteLayout;
b'\\ No newline at end of file'