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
fa4379de
Commit
fa4379de
authored
11 years ago
by
Jacob
Browse files
Options
Download
Plain Diff
Merge pull request #12862 from sultano/patch-1
Fixed flickering and simplified calculations
parents
ead17b7c
f7c360d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/affix.js
+1
-3
js/affix.js
with
1 addition
and
3 deletions
+1
-3
js/affix.js
+
1
-
3
View file @
fa4379de
...
...
@@ -55,8 +55,6 @@
var
offsetTop
=
offset
.
top
var
offsetBottom
=
offset
.
bottom
if
(
this
.
affixed
==
'
top
'
)
position
.
top
+=
scrollTop
if
(
typeof
offset
!=
'
object
'
)
offsetBottom
=
offsetTop
=
offset
if
(
typeof
offsetTop
==
'
function
'
)
offsetTop
=
offset
.
top
(
this
.
$element
)
if
(
typeof
offsetBottom
==
'
function
'
)
offsetBottom
=
offset
.
bottom
(
this
.
$element
)
...
...
@@ -84,7 +82,7 @@
.
trigger
(
$
.
Event
(
affixType
.
replace
(
'
affix
'
,
'
affixed
'
)))
if
(
affix
==
'
bottom
'
)
{
this
.
$element
.
offset
({
top
:
scrollHeight
-
offsetBottom
-
this
.
$element
.
height
()
})
this
.
$element
.
offset
({
top
:
position
.
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