Alien-Web-ExtJS-V3
view release on metacpan or search on metacpan
share/docs/source/BoxLayout.html view on Meta::CPAN
* @param {Ext.Element} target The target element
*/
handleTargetOverflow: function(previousTargetSize, container, target) {
var overflow = target.getStyle('overflow');
if (overflow && overflow != 'hidden' &&!this.adjustmentPass) {
var newTargetSize = this.getLayoutTargetSize();
if (newTargetSize.width != previousTargetSize.width || newTargetSize.height != previousTargetSize.height){
this.adjustmentPass = true;
this.onLayout(container, target);
}
}
delete this.adjustmentPass;
},
<span id='Ext-layout-BoxLayout-method-isValidParent'> // private
</span> isValidParent : function(c, target) {
return this.innerCt && c.getPositionEl().dom.parentNode == this.innerCt.dom;
},
<span id='Ext-layout-BoxLayout-method-getVisibleItems'> /**
</span> * @private
* Returns all items that are both rendered and visible
* @return {Array} All matching items
*/
getVisibleItems: function(ct) {
var ct = ct || this.container,
t = ct.getLayoutTarget(),
cti = ct.items.items,
len = cti.length,
i, c, items = [];
for (i = 0; i < len; i++) {
if((c = cti[i]).rendered && this.isValidParent(c, t) && c.hidden !== true && c.collapsed !== true && c.shouldLayout !== false){
items.push(c);
}
}
return items;
},
<span id='Ext-layout-BoxLayout-method-renderAll'> // private
</span> renderAll : function(ct, target) {
if (!this.innerCt) {
// the innerCt prevents wrapping and shuffling while the container is resizing
this.innerCt = target.createChild({cls:this.innerCls});
this.padding = this.parseMargins(this.padding);
}
Ext.layout.BoxLayout.superclass.renderAll.call(this, ct, this.innerCt);
},
<span id='Ext-layout-BoxLayout-method-getLayoutTargetSize'> getLayoutTargetSize : function() {
</span> var target = this.container.getLayoutTarget(), ret;
if (target) {
ret = target.getViewSize();
// IE in strict mode will return a width of 0 on the 1st pass of getViewSize.
// Use getStyleSize to verify the 0 width, the adjustment pass will then work properly
// with getViewSize
if (Ext.isIE9m && Ext.isStrict && ret.width == 0){
ret = target.getStyleSize();
}
ret.width -= target.getPadding('lr');
ret.height -= target.getPadding('tb');
}
return ret;
},
<span id='Ext-layout-BoxLayout-method-renderItem'> // private
</span> renderItem : function(c) {
if(Ext.isString(c.margins)){
c.margins = this.parseMargins(c.margins);
}else if(!c.margins){
c.margins = this.defaultMargins;
}
Ext.layout.BoxLayout.superclass.renderItem.apply(this, arguments);
},
<span id='Ext-layout-BoxLayout-method-destroy'> /**
</span> * @private
*/
destroy: function() {
Ext.destroy(this.overflowHandler);
Ext.layout.BoxLayout.superclass.destroy.apply(this, arguments);
}
});
<span id='Ext-layout-boxOverflow-None'>/**
</span> * @class Ext.layout.boxOverflow.None
* @extends Object
* Base class for Box Layout overflow handlers. These specialized classes are invoked when a Box Layout
* (either an HBox or a VBox) has child items that are either too wide (for HBox) or too tall (for VBox)
* for its container.
*/
Ext.layout.boxOverflow.None = Ext.extend(Object, {
<span id='Ext-layout-boxOverflow-None-method-constructor'> constructor: function(layout, config) {
</span> this.layout = layout;
Ext.apply(this, config || {});
},
<span id='Ext-layout-boxOverflow-None-method-handleOverflow'> handleOverflow: Ext.emptyFn,
</span>
<span id='Ext-layout-boxOverflow-None-method-clearOverflow'> clearOverflow: Ext.emptyFn
</span>});
Ext.layout.boxOverflow.none = Ext.layout.boxOverflow.None;
</pre>
</body>
</html>
( run in 0.491 second using v1.01-cache-2.11-cpan-5b529ec07f3 )