Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
3c98dd35
Commit
3c98dd35
authored
Oct 22, 2014
by
Heinrich Fenkart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix IE8 unit test breakage introduced by #14767
parent
ab8dbc21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
js/tests/unit/tooltip.js
js/tests/unit/tooltip.js
+6
-2
No files found.
js/tests/unit/tooltip.js
View file @
3c98dd35
...
...
@@ -461,7 +461,7 @@ $(function () {
test
(
'
should display the tip on bottom whenever scrollable viewport doesn
\'
t have enough room if the given placement is "auto top"
'
,
function
()
{
var
styles
=
'
<style>
'
+
'
#scrollable-div { height: 200px; overflow: auto; }
'
+
'
.tooltip-item {
margin
: 200px 0 400px; width: 150px; }
'
+
'
.tooltip-item {
padding
: 200px 0 400px; width: 150px; }
'
+
'
</style>
'
var
$styles
=
$
(
styles
).
appendTo
(
'
head
'
)
...
...
@@ -487,13 +487,17 @@ $(function () {
test
(
'
should display the tip on bottom whenever scrollable viewport has enough room if the given placement is "auto bottom"
'
,
function
()
{
var
styles
=
'
<style>
'
+
'
#scrollable-div { height: 200px; overflow: auto; }
'
+
'
.tooltip-item { margin: 200px 0 400px; width: 150px; }
'
+
'
.spacer { height: 400px; }
'
+
'
.spacer:first-child { height: 200px; }
'
+
'
.tooltip-item { width: 150px; }
'
+
'
</style>
'
var
$styles
=
$
(
styles
).
appendTo
(
'
head
'
)
var
$container
=
$
(
'
<div id="scrollable-div"/>
'
).
appendTo
(
'
#qunit-fixture
'
)
var
$target
=
$
(
'
<div rel="tooltip" title="tip" class="tooltip-item">Tooltip Item</div>
'
)
.
appendTo
(
$container
)
.
before
(
'
<div class="spacer"/>
'
)
.
after
(
'
<div class="spacer"/>
'
)
.
bootstrapTooltip
({
placement
:
'
bottom auto
'
,
viewport
:
'
#scrollable-div
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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