Skip to content

Commit

Permalink
modify spliter event
Browse files Browse the repository at this point in the history
  • Loading branch information
kekee000 committed Apr 20, 2016
1 parent 4e971a3 commit 0d4e918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fonteditor/controller/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ define(

if (!isEditorVisible) {
program.editor.show();
program.spliter.enable();
program.fire('editor-show');
}

Expand Down Expand Up @@ -106,7 +105,6 @@ define(
$('.editor').removeClass('editing');

program.editor && program.editor.hide();
program.spliter.disable();
program.fire('editor-hide');
program.viewer.clearEditing();
program.viewer.setMode('list');
Expand Down Expand Up @@ -483,10 +481,12 @@ define(
program.editor.editor.render.resizeCapture.un('resize', adjustEditor);
program.editor.editor.render.resizeCapture.on('resize', adjustEditor);
adjustEditor();
program.spliter.enable();
})
.on('editor-hide', function () {
program.editor.editor.render.resizeCapture.un('resize', adjustEditor);
$('.main').css('margin-left', '');
program.spliter.disable();
});

program.spliter.disable()
Expand Down

0 comments on commit 0d4e918

Please sign in to comment.