From 1f6eae45452405a87d12e7a1c2e09f212bd191de Mon Sep 17 00:00:00 2001 From: liyuchun <563917701@qq.com> Date: Fri, 26 Aug 2022 14:34:26 +0800 Subject: [PATCH] * Edit editor height. --- module/repo/view/ajaxgeteditorcontent.html.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/repo/view/ajaxgeteditorcontent.html.php b/module/repo/view/ajaxgeteditorcontent.html.php index 29e2a4cff6..08ab73da25 100644 --- a/module/repo/view/ajaxgeteditorcontent.html.php +++ b/module/repo/view/ajaxgeteditorcontent.html.php @@ -201,6 +201,11 @@ $(function() { var link = $(this).data('link'); parent.loadLinkPage(link); - }) + }); + + $('#relationTabs').on('onOpen', function(event, tab) { + var relatedHeight = codeHeight / 5 * 2 - $('#log').height() - 45; + $('#relationTabs iframe').css('height', relatedHeight); + }); });