</script>
</head>
<body onload="prettyPrint(); highlight();">
- <pre class="prettyprint lang-js"><span id='Ext-picker-Month-method-constructor'><span id='Ext-picker-Month'>/**
-</span></span> * @private
+ <pre class="prettyprint lang-js"><span id='Ext-picker-Month'>/**
+</span> * @private
* @class Ext.picker.Month
* @extends Ext.Component
* <p>A month picker component. This class is used by the {@link Ext.picker.Date DatePicker} class
* to allow browsing and selection of year/months combinations.</p>
- * @constructor
- * Create a new MonthPicker
- * @param {Object} config The config object
- * @xtype monthpicker
- * @private
*/
Ext.define('Ext.picker.Month', {
extend: 'Ext.Component',
<span id='Ext-picker-Month-cfg-value'> /**
</span> * @cfg {Date/Array} value The default value to set. See {#setValue setValue}
*/
-
- width: 175,
-
- height: 195,
-
+ width: 178,
+
+ // used when attached to date picker which isnt showing buttons
+ smallCls: Ext.baseCSSPrefix + 'monthpicker-small',
// private
totalYears: 10,
*/
'yeardblclick'
);
-
+ if (me.small) {
+ me.addCls(me.smallCls);
+ }
me.setValue(me.value);
me.activeYear = me.getYear(new Date().getFullYear() - 4, -4);
this.callParent();