fixed the editor positioning and sizing in the wiki edit view
This commit is contained in:
parent
3bad9dc8c0
commit
590e7ac1d7
@ -61,13 +61,14 @@ function resize_editor()
|
|||||||
|
|
||||||
var titleband = $("#wiki_edit_title_band");
|
var titleband = $("#wiki_edit_title_band");
|
||||||
var toolbar = $("#medium-editor-toolbar-1");
|
var toolbar = $("#medium-editor-toolbar-1");
|
||||||
|
var toolbar_container = $("#wiki_edit_toolbar");
|
||||||
var files = $("#wiki_edit_files");
|
var files = $("#wiki_edit_files");
|
||||||
var footer = $("#codepot_footer");
|
var footer = $("#codepot_footer");
|
||||||
var editor_container = $("#wiki_edit_result");
|
|
||||||
|
|
||||||
var ioff = titleband.offset();
|
var ioff = titleband.offset();
|
||||||
var foff = footer.offset();
|
var foff = footer.offset();
|
||||||
|
|
||||||
|
toolbar_container.innerHeight (toolbar.innerHeight());
|
||||||
ioff.top += titleband.outerHeight() + files.outerHeight() + toolbar.outerHeight() + 10;
|
ioff.top += titleband.outerHeight() + files.outerHeight() + toolbar.outerHeight() + 10;
|
||||||
|
|
||||||
editor.offset (ioff);
|
editor.offset (ioff);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
overflow: visible !important;
|
overflow: visible !important;
|
||||||
margin: 0.2em 0 0.2em 0;
|
margin: 0.2em 0 0.2em 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wiki_edit_toolbar {
|
#wiki_edit_toolbar {
|
||||||
@ -36,6 +37,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0.2em 0 0 0;
|
margin: 0.2em 0 0 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wiki_edit_toolbar .medium-editor-toolbar {
|
#wiki_edit_toolbar .medium-editor-toolbar {
|
||||||
|
Loading…
Reference in New Issue
Block a user