diff options
author | Jacob Schatz <jschatz1@gmail.com> | 2017-08-06 10:45:30 -0400 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2017-08-06 10:45:30 -0400 |
commit | 863114b4f5bc95b5a6b9e814b98306166f88bb35 (patch) | |
tree | 357c570a4f7ac91a97461c1b8e08cb7eb0497069 /app/assets/javascripts/helpers | |
parent | 40347b7807c604424775b13949dd7bd159221570 (diff) | |
download | gitlab-ce-863114b4f5bc95b5a6b9e814b98306166f88bb35.tar.gz |
Remove scroll helper... not being used anymore.
Diffstat (limited to 'app/assets/javascripts/helpers')
-rw-r--r-- | app/assets/javascripts/helpers/scroll_helper.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/app/assets/javascripts/helpers/scroll_helper.js b/app/assets/javascripts/helpers/scroll_helper.js deleted file mode 100644 index e921f9e2e0f..00000000000 --- a/app/assets/javascripts/helpers/scroll_helper.js +++ /dev/null @@ -1,31 +0,0 @@ -import $ from 'jquery'; - -const ScrollHelper = { - getScrollWidth() { - const $rulerContainer = $('<div>').css({ - visibility: 'hidden', - width: 100, - overflow: 'scroll', - }); - - const $ruler = $('<div>').css({ - width: 100, - }); - - $ruler.appendTo($rulerContainer); - - $rulerContainer.appendTo('body'); - - const scrollWidth = $ruler.get(0).offsetWidth; - - $rulerContainer.remove(); - - return 100 - scrollWidth; - }, - - setScrollWidth() { - $('body').attr('data-scroll-width', ScrollHelper.getScrollWidth()); - }, -}; - -export default ScrollHelper; |