Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
University of Michigan Fencing
club-theme
Commits
5728b94b
Commit
5728b94b
authored
May 07, 2016
by
key-amb
Browse files
Consider footHeight to stop sidebar scrolling
parent
d4282463
Changes
1
Hide whitespace changes
Inline
Side-by-side
static/js/bootie-docs.js
View file @
5728b94b
...
...
@@ -22,7 +22,7 @@ window.onload = function() {
sideNode
.
css
({
"
position
"
:
"
fixed
"
,
"
top
"
:
headHeight
+
20
+
"
px
"
});
}
else
if
(
w
.
scrollTop
()
>=
scrollStop
)
{
var
topNext
=
headHeight
-
(
headHeight
+
sideHeight
)
=
headHeight
-
(
headHeight
+
sideHeight
+
footHeight
)
*
(
w
.
scrollTop
()
-
scrollStop
)
/
(
totalHeight
-
scrollStop
);
sideNode
.
css
({
"
position
"
:
"
fixed
"
,
"
top
"
:
topNext
+
"
px
"
,
"
bottom
"
:
footHeight
+
"
px
"
...
...
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