From ec5ee3eaffaebbacb4aad9fdb119dda3caa04144 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 7 Jun 2021 17:32:30 +0200 Subject: [PATCH] Fix resizing codemirror in the code app #745 --- www/code/inner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/code/inner.js b/www/code/inner.js index 2eb433c01..d74513035 100644 --- a/www/code/inner.js +++ b/www/code/inner.js @@ -257,8 +257,8 @@ define([ 'class': 'cp-splitter' }).appendTo($previewContainer); - $preview.on('scroll', function() { - splitter.css('top', $preview.scrollTop() + 'px'); + $previewContainer.on('scroll', function() { + splitter.css('top', $previewContainer.scrollTop() + 'px'); }); var $target = $codeMirrorContainer;