From fd0cde4263f1af5ff52c86e0781db33ac541138f Mon Sep 17 00:00:00 2001 From: Francois Delpierre Date: Sat, 7 Feb 2015 17:22:48 +0100 Subject: [PATCH] Fixed issue/2046: Double scrollback in web editor because does not properly calculate display height --- applications/admin/views/default/edit.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/admin/views/default/edit.html b/applications/admin/views/default/edit.html index d879e157..12278426 100644 --- a/applications/admin/views/default/edit.html +++ b/applications/admin/views/default/edit.html @@ -87,7 +87,7 @@ $(document).on('shown click', 'a[data-toggle="tab"]', function (e, lineno) { var tab_id = $(this).attr('href'); var editor = $(tab_id + " textarea").data('editor'); if (editor) { - editor_height = $(window).height() - $(tab_id + " .well-small").offset().top - $(tab_id + " .well-small").outerHeight(true) - $('.navbar-fixed-bottom').outerHeight() - 1; + editor_height = $(window).height() - $(tab_id + " .well-small").offset().top - $(tab_id + " .well-small").outerHeight(true) - $('.navbar-fixed-bottom').outerHeight() - 60; editor.setSize('100%', editor_height); editor.refresh(); if (lineno !== undefined) {