Sha256: 08e51aa10ea512863335c784acae5b8f5bcee882c6724006e1fb097daf138f2a
Contents?: true
Size: 1.27 KB
Versions: 10
Compression:
Stored size: 1.27 KB
Contents
/** * Component layout for grid column headers which have a title element at the top followed by content. * @private */ Ext.define('Ext.grid.ColumnComponentLayout', { extend: 'Ext.layout.component.Auto', alias: 'layout.columncomponent', type: 'columncomponent', setWidthInDom: true, getContentHeight : function(ownerContext) { // If we are a group header return container layout's contentHeight, else default to AutoComponent's answer return this.owner.isGroupHeader ? ownerContext.getProp('contentHeight') : this.callParent(arguments); }, calculateOwnerHeightFromContentHeight: function (ownerContext, contentHeight) { var result = this.callParent(arguments); if (this.owner.isGroupHeader) { result += this.owner.titleEl.dom.offsetHeight; } return result; }, getContentWidth : function(ownerContext) { // If we are a group header return container layout's contentHeight, else default to AutoComponent's answer return this.owner.isGroupHeader ? ownerContext.getProp('contentWidth') : this.callParent(arguments); }, calculateOwnerWidthFromContentWidth: function (ownerContext, contentWidth) { return contentWidth + ownerContext.getPaddingInfo().width; } });
Version data entries
10 entries across 10 versions & 2 rubygems