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
ae50bb78
Commit
ae50bb78
authored
8 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
grunt
parent
275821bb
8 merge requests
!28721
Hot test
,
!27561
Adds font-weight-medium to font weight classes
,
!22391
V4 dev
,
!22598
test
,
!25326
Adjust examples
,
!23995
Add back cursor: pointer for .btn-link
,
!23178
Spinner
,
!17021
v4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
js/dist/modal.js
+1
-1
js/dist/modal.js
js/dist/modal.js.map
+0
-0
js/dist/modal.js.map
js/dist/scrollspy.js
+7
-4
js/dist/scrollspy.js
js/dist/scrollspy.js.map
+0
-0
js/dist/scrollspy.js.map
with
8 additions
and
5 deletions
+8
-5
js/dist/modal.js
+
1
-
1
View file @
ae50bb78
...
...
@@ -436,7 +436,7 @@ var Modal = function ($) {
var
scrollDiv
=
document
.
createElement
(
'
div
'
);
scrollDiv
.
className
=
ClassName
.
SCROLLBAR_MEASURER
;
document
.
body
.
appendChild
(
scrollDiv
);
var
scrollbarWidth
=
scrollDiv
.
offsetW
idth
-
scrollDiv
.
clientWidth
;
var
scrollbarWidth
=
scrollDiv
.
getBoundingClientRect
().
w
idth
-
scrollDiv
.
clientWidth
;
document
.
body
.
removeChild
(
scrollDiv
);
return
scrollbarWidth
;
};
...
...
This diff is collapsed.
Click to expand it.
js/dist/modal.js.map
+50 bytes (+0%)
View file @
ae50bb78
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
This diff is collapsed.
Click to expand it.
js/dist/scrollspy.js
+
7
-
4
View file @
ae50bb78
...
...
@@ -126,9 +126,12 @@ var ScrollSpy = function ($) {
target
=
$
(
targetSelector
)[
0
];
}
if
(
target
&&
(
target
.
offsetWidth
||
target
.
offsetHeight
))
{
// todo (fat): remove sketch reliance on jQuery position/offset
return
[
$
(
target
)[
offsetMethod
]().
top
+
offsetBase
,
targetSelector
];
if
(
target
)
{
var
targetBCR
=
target
.
getBoundingClientRect
();
if
(
targetBCR
.
width
||
targetBCR
.
height
)
{
// todo (fat): remove sketch reliance on jQuery position/offset
return
[
$
(
target
)[
offsetMethod
]().
top
+
offsetBase
,
targetSelector
];
}
}
return
null
;
}).
filter
(
function
(
item
)
{
...
...
@@ -183,7 +186,7 @@ var ScrollSpy = function ($) {
};
ScrollSpy
.
prototype
.
_getOffsetHeight
=
function
_getOffsetHeight
()
{
return
this
.
_scrollElement
===
window
?
window
.
innerHeight
:
this
.
_scrollElement
.
offsetH
eight
;
return
this
.
_scrollElement
===
window
?
window
.
innerHeight
:
this
.
_scrollElement
.
getBoundingClientRect
().
h
eight
;
};
ScrollSpy
.
prototype
.
_process
=
function
_process
()
{
...
...
This diff is collapsed.
Click to expand it.
js/dist/scrollspy.js.map
+203 bytes (+1%)
View file @
ae50bb78
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
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