web-apps/apps/presentationeditor/mobile/app/controller/Presentation.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

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();
}
}
});