Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
724c4f52
Commit
724c4f52
authored
10 years ago
by
Charles B Johnson
Browse files
Options
Download
Email Patches
Plain Diff
Fix issue where bottom affixed element floats over the footer when the
document height is smaller than the viewport height.
parent
8c0eb9b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/affix.js
+1
-1
js/affix.js
with
1 addition
and
1 deletion
+1
-1
js/affix.js
+
1
-
1
View file @
724c4f52
...
...
@@ -81,7 +81,7 @@
Affix
.
prototype
.
checkPosition
=
function
()
{
if
(
!
this
.
$element
.
is
(
'
:visible
'
))
return
var
scrollHeight
=
$
(
document
).
height
()
var
scrollHeight
=
$
(
'
body
'
).
height
()
var
height
=
this
.
$element
.
height
()
var
offset
=
this
.
options
.
offset
var
offsetTop
=
offset
.
top
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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