extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
38 lines (30 loc) • 859 B
JavaScript
/**
* @class Ext.chart.overrides.AbstractChart
*/
Ext.define('Ext.chart.overrides.AbstractChart', {
override: 'Ext.chart.AbstractChart',
updateLegend: function (legend, oldLegend) {
this.callParent([legend, oldLegend]);
if (legend && legend.isDomLegend) {
this.addDocked(legend);
}
},
performLayout: function() {
if (this.isVisible(true)) {
return this.callParent();
}
this.cancelChartLayout();
return false;
},
afterComponentLayout: function(width, height, oldWidth, oldHeight) {
this.callParent([width, height, oldWidth, oldHeight]);
this.scheduleLayout();
},
allowSchedule: function() {
return this.rendered;
},
doDestroy: function () {
this.destroyChart();
this.callParent();
}
});