Fix resizing codemirror in the code app #745

pull/1/head
yflory 4 years ago
parent ff5ba8eb1c
commit ec5ee3eaff

@ -257,8 +257,8 @@ define([
'class': 'cp-splitter' 'class': 'cp-splitter'
}).appendTo($previewContainer); }).appendTo($previewContainer);
$preview.on('scroll', function() { $previewContainer.on('scroll', function() {
splitter.css('top', $preview.scrollTop() + 'px'); splitter.css('top', $previewContainer.scrollTop() + 'px');
}); });
var $target = $codeMirrorContainer; var $target = $codeMirrorContainer;

Loading…
Cancel
Save