summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-11-17 10:53:14 +0000
committerPhil Hughes <me@iamphill.com>2017-11-17 14:51:29 +0000
commitc70289a0a1c7637878b83840400ab41e763bfc07 (patch)
tree69ee788235537f82d1b6ef3a7c0e617eb12fd4a4
parente05cd8830007d0b1fba832530dca255312ba6140 (diff)
downloadgitlab-ce-c70289a0a1c7637878b83840400ab41e763bfc07.tar.gz
moved magic number into variablesimproved-changes-dropdown
-rw-r--r--app/assets/javascripts/dispatcher.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js
index a8b2c97c188..344b31cf8b7 100644
--- a/app/assets/javascripts/dispatcher.js
+++ b/app/assets/javascripts/dispatcher.js
@@ -340,7 +340,8 @@ import ProjectVariables from './project_variables';
container: '.js-commit-pipeline-graph',
}).bindEvents();
initNotes();
- initChangesDropdown(document.querySelector('.navbar-gitlab').offsetHeight - 16);
+ const stickyBarPaddingTop = 16;
+ initChangesDropdown(document.querySelector('.navbar-gitlab').offsetHeight - stickyBarPaddingTop);
$('.commit-info.branches').load(document.querySelector('.js-commit-box').dataset.commitPath);
break;
case 'projects:commit:pipelines':