From 20e74bfef65c0dec9e58f1ff0d2b9b066940a465 Mon Sep 17 00:00:00 2001 From: Matthew Scragg Date: Fri, 26 Sep 2014 17:40:21 -0500 Subject: [PATCH] fix scroll sync --- realms/static/js/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/realms/static/js/editor.js b/realms/static/js/editor.js index 9015209..f330654 100644 --- a/realms/static/js/editor.js +++ b/realms/static/js/editor.js @@ -568,7 +568,7 @@ function syncPreview() { // Set the scroll position of the preview pane to match. jQuery will // gracefully handle out-of-bounds values. - $prev.scrollTop(scrollFactor * previewScrollRange); + $prev.parent().scrollTop(scrollFactor * previewScrollRange); } window.onload = function () {