fix issue with container top not being right on default view

This commit is contained in:
John McLear 2013-12-23 18:59:27 +00:00
parent 3689930d8e
commit 4540dd327c
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ep_page_view",
"version": "0.4.9",
"version": "0.5.0",
"keywords": ["page view", "pv", "preview", "overview", "page break", "break", "new page"],
"description": "Add support to do 'page view', with a toggle on/off option in Settings, also Page Breaks with Control Enter",
"contributors": [

View file

@ -24,6 +24,8 @@ if (!isMobile) {
$('#options-linenoscheck').attr("disabled", true);
}
$('#editorcontainer').css("top", "15px");
var containerTop = $('.toolbar').position().top + $('.toolbar').height() +5;
$('#editorcontainerbox').css("top", containerTop);
$('#ep_page_ruler').show();
pad.changeViewOption('showLineNumbers', false);
},