BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
863114b4
Commit
863114b4
authored
Aug 06, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove scroll helper... not being used anymore.
parent
40347b78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
34 deletions
+0
-34
dispatcher.js
app/assets/javascripts/dispatcher.js
+0
-3
scroll_helper.js
app/assets/javascripts/helpers/scroll_helper.js
+0
-31
No files found.
app/assets/javascripts/dispatcher.js
View file @
863114b4
...
...
@@ -68,7 +68,6 @@ import VersionCheckImage from './version_check_image';
import
Wikis
from
'./wikis'
;
import
ZenMode
from
'./zen_mode'
;
import
initSettingsPanels
from
'./settings_panels'
;
import
ScrollHelper
from
'./helpers/scroll_helper'
;
import
initExperimentalFlags
from
'./experimental_flags'
;
import
OAuthRememberMe
from
'./oauth_remember_me'
;
import
PerformanceBar
from
'./performance_bar'
;
...
...
@@ -99,8 +98,6 @@ import UserFeatureHelper from './helpers/user_feature_helper';
return
false
;
}
ScrollHelper
.
setScrollWidth
();
path
=
page
.
split
(
':'
);
shortcut_handler
=
null
;
...
...
app/assets/javascripts/helpers/scroll_helper.js
deleted
100644 → 0
View file @
40347b78
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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment