fixed the editor positioning and sizing in the wiki edit view

This commit is contained in:
hyung-hwan 2016-01-13 13:39:51 +00:00
parent 3bad9dc8c0
commit 590e7ac1d7
2 changed files with 4 additions and 1 deletions

View File

@ -61,13 +61,14 @@ function resize_editor()
var titleband = $("#wiki_edit_title_band");
var toolbar = $("#medium-editor-toolbar-1");
var toolbar_container = $("#wiki_edit_toolbar");
var files = $("#wiki_edit_files");
var footer = $("#codepot_footer");
var editor_container = $("#wiki_edit_result");
var ioff = titleband.offset();
var foff = footer.offset();
toolbar_container.innerHeight (toolbar.innerHeight());
ioff.top += titleband.outerHeight() + files.outerHeight() + toolbar.outerHeight() + 10;
editor.offset (ioff);

View File

@ -28,6 +28,7 @@
overflow: visible !important;
margin: 0.2em 0 0.2em 0;
width: 100%;
clear: both;
}
#wiki_edit_toolbar {
@ -36,6 +37,7 @@
width: 100%;
margin: 0.2em 0 0 0;
padding: 0;
clear: both;
}
#wiki_edit_toolbar .medium-editor-toolbar {