Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
f2b98f6b
Commit
f2b98f6b
authored
8 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
grunt
parent
d328c911
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dist/js/bootstrap.js
+6
-1
dist/js/bootstrap.js
dist/js/bootstrap.min.js
+2
-2
dist/js/bootstrap.min.js
docs/dist/js/bootstrap.js
+6
-1
docs/dist/js/bootstrap.js
docs/dist/js/bootstrap.min.js
+2
-2
docs/dist/js/bootstrap.min.js
with
16 additions
and
6 deletions
+16
-6
dist/js/bootstrap.js
+
6
-
1
View file @
f2b98f6b
...
...
@@ -2307,10 +2307,14 @@ var ScrollSpy = function ($) {
return
this
.
_scrollElement
.
scrollHeight
||
Math
.
max
(
document
.
body
.
scrollHeight
,
document
.
documentElement
.
scrollHeight
);
};
ScrollSpy
.
prototype
.
_getOffsetHeight
=
function
_getOffsetHeight
()
{
return
this
.
_scrollElement
===
window
?
window
.
innerHeight
:
this
.
_scrollElement
.
offsetHeight
;
};
ScrollSpy
.
prototype
.
_process
=
function
_process
()
{
var
scrollTop
=
this
.
_getScrollTop
()
+
this
.
_config
.
offset
;
var
scrollHeight
=
this
.
_getScrollHeight
();
var
maxScroll
=
this
.
_config
.
offset
+
scrollHeight
-
this
.
_
scrollElement
.
o
ffsetHeight
;
var
maxScroll
=
this
.
_config
.
offset
+
scrollHeight
-
this
.
_
getO
ffsetHeight
()
;
if
(
this
.
_scrollHeight
!==
scrollHeight
)
{
this
.
refresh
();
...
...
@@ -2322,6 +2326,7 @@ var ScrollSpy = function ($) {
if
(
this
.
_activeTarget
!==
target
)
{
this
.
_activate
(
target
);
}
return
;
}
if
(
this
.
_activeTarget
&&
scrollTop
<
this
.
_offsets
[
0
])
{
...
...
This diff is collapsed.
Click to expand it.
dist/js/bootstrap.min.js
+
2
-
2
View file @
f2b98f6b
This diff is collapsed.
Click to expand it.
docs/dist/js/bootstrap.js
+
6
-
1
View file @
f2b98f6b
...
...
@@ -2307,10 +2307,14 @@ var ScrollSpy = function ($) {
return
this
.
_scrollElement
.
scrollHeight
||
Math
.
max
(
document
.
body
.
scrollHeight
,
document
.
documentElement
.
scrollHeight
);
};
ScrollSpy
.
prototype
.
_getOffsetHeight
=
function
_getOffsetHeight
()
{
return
this
.
_scrollElement
===
window
?
window
.
innerHeight
:
this
.
_scrollElement
.
offsetHeight
;
};
ScrollSpy
.
prototype
.
_process
=
function
_process
()
{
var
scrollTop
=
this
.
_getScrollTop
()
+
this
.
_config
.
offset
;
var
scrollHeight
=
this
.
_getScrollHeight
();
var
maxScroll
=
this
.
_config
.
offset
+
scrollHeight
-
this
.
_
scrollElement
.
o
ffsetHeight
;
var
maxScroll
=
this
.
_config
.
offset
+
scrollHeight
-
this
.
_
getO
ffsetHeight
()
;
if
(
this
.
_scrollHeight
!==
scrollHeight
)
{
this
.
refresh
();
...
...
@@ -2322,6 +2326,7 @@ var ScrollSpy = function ($) {
if
(
this
.
_activeTarget
!==
target
)
{
this
.
_activate
(
target
);
}
return
;
}
if
(
this
.
_activeTarget
&&
scrollTop
<
this
.
_offsets
[
0
])
{
...
...
This diff is collapsed.
Click to expand it.
docs/dist/js/bootstrap.min.js
+
2
-
2
View file @
f2b98f6b
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
Menu
Explore
Projects
Groups
Snippets