diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-08-10 15:33:45 -0500 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-08-14 11:11:00 -0500 |
commit | d15b5c7f5da620cc773c413e7c281f1a34f15377 (patch) | |
tree | eb6ad39623e6a178ec73c528c25e0ea9ad4dc1bd /app/assets/javascripts | |
parent | bff7c00778906aa0906b0869f4091d820048d3cf (diff) | |
download | gitlab-ce-d15b5c7f5da620cc773c413e7c281f1a34f15377.tar.gz |
Scroll total scroll width instead of fixed value
Fixed value could potentially be not enough
Fix
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12198#note_37145886
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/repo/helpers/repo_helper.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/repo/helpers/repo_helper.js b/app/assets/javascripts/repo/helpers/repo_helper.js index 0def5032cc6..8703189c8b9 100644 --- a/app/assets/javascripts/repo/helpers/repo_helper.js +++ b/app/assets/javascripts/repo/helpers/repo_helper.js @@ -238,7 +238,7 @@ const RepoHelper = { setTimeout(() => { const tabs = document.getElementById('tabs'); if (!tabs) return; - tabs.scrollLeft = 12000; + tabs.scrollLeft = tabs.scrollWidth; }, 200); }, |