From 590e7ac1d74d7e7947f9443b8c4220b9bd1fcc37 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 13 Jan 2016 13:39:51 +0000 Subject: [PATCH] fixed the editor positioning and sizing in the wiki edit view --- codepot/src/codepot/views/wiki_editx.php | 3 ++- codepot/src/css/wiki.css | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/codepot/src/codepot/views/wiki_editx.php b/codepot/src/codepot/views/wiki_editx.php index e92e8295..11c332ec 100644 --- a/codepot/src/codepot/views/wiki_editx.php +++ b/codepot/src/codepot/views/wiki_editx.php @@ -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); diff --git a/codepot/src/css/wiki.css b/codepot/src/css/wiki.css index ab717c3c..69f44a31 100644 --- a/codepot/src/css/wiki.css +++ b/codepot/src/css/wiki.css @@ -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 {