31 lines
513 B
JavaScript
31 lines
513 B
JavaScript
Ext.define('PE.controller.Presentation', {
|
|
extend: 'Ext.app.Controller',
|
|
|
|
config: {
|
|
refs: {
|
|
},
|
|
|
|
control: {
|
|
}
|
|
},
|
|
|
|
init: function() {
|
|
|
|
},
|
|
|
|
launch: function() {
|
|
Ext.getCmp('id-conteiner-document').on('resize', this.onEditorResize, this);
|
|
},
|
|
|
|
setApi: function(o) {
|
|
this.api = o;
|
|
},
|
|
|
|
onEditorResize: function(cmp) {
|
|
if (this.api) {
|
|
this.api.Resize();
|
|
this.api.zoomFitToWidth();
|
|
}
|
|
}
|
|
});
|