Browse Source

Update runDefault command in Editor

pull/2524/head
Artur Arseniev 7 years ago
parent
commit
4c0a398f8c
  1. 1
      src/canvas/view/FrameWrapView.js
  2. 7
      src/editor/view/EditorView.js

1
src/canvas/view/FrameWrapView.js

@ -87,7 +87,6 @@ export default Backbone.View.extend({
* @private * @private
*/ */
updateDim() { updateDim() {
console.log('updateDim');
const { em, el, $el, model } = this; const { em, el, $el, model } = this;
const { width, height } = model.attributes; const { width, height } = model.attributes;
const { style } = el; const { style } = el;

7
src/editor/view/EditorView.js

@ -13,9 +13,10 @@ export default Backbone.View.extend({
model.on('loaded', () => { model.on('loaded', () => {
this.pn.active(); this.pn.active();
this.pn.disableButtons(); this.pn.disableButtons();
console.log('editorView runDefault'); setTimeout(() => {
model.runDefault(); model.runDefault();
setTimeout(() => model.trigger('load', model.get('Editor'))); model.trigger('load', model.get('Editor'));
});
}); });
}, },

Loading…
Cancel
Save