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
95e0f48e
Commit
95e0f48e
authored
10 years ago
by
Heinrich Fenkart
Browse files
Options
Download
Email Patches
Plain Diff
Follow-up to
e2cfbd5f
: Fix spaces in placement calculation
parent
e2cfbd5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/tooltip.js
+4
-4
js/tooltip.js
with
4 additions
and
4 deletions
+4
-4
js/tooltip.js
+
4
-
4
View file @
95e0f48e
...
...
@@ -191,10 +191,10 @@
var
$container
=
this
.
options
.
container
?
$
(
this
.
options
.
container
)
:
this
.
$element
.
parent
()
var
containerDim
=
this
.
getPosition
(
$container
)
placement
=
placement
==
'
bottom
'
&&
pos
.
bottom
+
actualHeight
>
containerDim
.
bottom
?
'
top
'
:
placement
==
'
top
'
&&
pos
.
top
-
actualHeight
<
containerDim
.
top
?
'
bottom
'
:
placement
==
'
right
'
&&
pos
.
right
+
actualWidth
>
containerDim
.
width
?
'
left
'
:
placement
==
'
left
'
&&
pos
.
left
-
actualWidth
<
containerDim
.
left
?
'
right
'
:
placement
=
placement
==
'
bottom
'
&&
pos
.
bottom
+
actualHeight
>
containerDim
.
bottom
?
'
top
'
:
placement
==
'
top
'
&&
pos
.
top
-
actualHeight
<
containerDim
.
top
?
'
bottom
'
:
placement
==
'
right
'
&&
pos
.
right
+
actualWidth
>
containerDim
.
width
?
'
left
'
:
placement
==
'
left
'
&&
pos
.
left
-
actualWidth
<
containerDim
.
left
?
'
right
'
:
placement
$tip
...
...
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