|
@@ -1,7 +1,7 @@
|
|
|
Ext.define('school.view.core.chart.ChartBase', {
|
|
Ext.define('school.view.core.chart.ChartBase', {
|
|
|
extend: 'Ext.panel.Panel',
|
|
extend: 'Ext.panel.Panel',
|
|
|
|
|
|
|
|
- height: 370,
|
|
|
|
|
|
|
+ minHeight: 370,
|
|
|
bodyPadding: '16 16 16 0',
|
|
bodyPadding: '16 16 16 0',
|
|
|
|
|
|
|
|
layout: 'fit',
|
|
layout: 'fit',
|
|
@@ -24,12 +24,7 @@ Ext.define('school.view.core.chart.ChartBase', {
|
|
|
Ext.apply(me, {
|
|
Ext.apply(me, {
|
|
|
title: Ext.create('Ext.panel.Header', {
|
|
title: Ext.create('Ext.panel.Header', {
|
|
|
title: me.getTitleHtml(),
|
|
title: me.getTitleHtml(),
|
|
|
- width: '100%',
|
|
|
|
|
- // listeners: {
|
|
|
|
|
- // boxready: function() {
|
|
|
|
|
- // debugger
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ width: '100%'
|
|
|
}),
|
|
}),
|
|
|
cls: 'quick-graph-panel ' + (me.cls || '')
|
|
cls: 'quick-graph-panel ' + (me.cls || '')
|
|
|
});
|
|
});
|
|
@@ -37,6 +32,14 @@ Ext.define('school.view.core.chart.ChartBase', {
|
|
|
me.callParent(arguments);
|
|
me.callParent(arguments);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ listeners: {
|
|
|
|
|
+ boxready: function(p) {
|
|
|
|
|
+ var owner = p.ownerCt;
|
|
|
|
|
+ var pHeight = owner.getBox().height;
|
|
|
|
|
+ this.setHeight(pHeight);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
getTitleHtml: function() {
|
|
getTitleHtml: function() {
|
|
|
var me = this,
|
|
var me = this,
|
|
|
title = me.title || '',
|
|
title = me.title || '',
|