From 4e5a264279ac3e6814d3e9b8ac199432899a3676 Mon Sep 17 00:00:00 2001 From: benweet Date: Mon, 10 Mar 2014 23:54:15 +0000 Subject: [PATCH] Dynamic preview panels size --- public/res/eventMgr.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/res/eventMgr.js b/public/res/eventMgr.js index bfb66e79..631b7f60 100644 --- a/public/res/eventMgr.js +++ b/public/res/eventMgr.js @@ -323,6 +323,9 @@ define([ $btnGroupElt.find('.dropdown-menu').css({ right: -previewButtonsWidth + $btnGroupElt.width() + $btnGroupElt.position().left }); + $btnGroupElt.find('.markdown-syntax, .table-of-contents').css({ + 'max-height': $(document).height() - $btnGroupElt.offset().top - 190 + }); }); });