diff options
Diffstat (limited to 'app/assets/javascripts/helpers/scroll_helper.js')
-rw-r--r-- | app/assets/javascripts/helpers/scroll_helper.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/helpers/scroll_helper.js b/app/assets/javascripts/helpers/scroll_helper.js index 4f1fd074daf..013ed1a20ad 100644 --- a/app/assets/javascripts/helpers/scroll_helper.js +++ b/app/assets/javascripts/helpers/scroll_helper.js @@ -9,10 +9,11 @@ const ScrollHelper = { }); const $ruler = $('<div>').css({ - width: '100%', + width: 100, }); $ruler.appendTo($rulerContainer); + $rulerContainer.appendTo('body'); const scrollWidth = $ruler.outerWidth(); |