Skip to content

Commit 80ba0a5

Browse files
committed
positioning
1 parent 77aba96 commit 80ba0a5

5 files changed

+15
-14
lines changed

dist/angular-tooltips.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-tooltips.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-tooltips.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,7 @@
288288
var tipContElement = element.find('tip-cont')
289289
, tipElement = element.find('tip');
290290

291-
if (event) {
292-
293-
element.addClass('active');
294-
}
295-
291+
tipElement.addClass('_hidden');
296292
if (attrs.tooltipSmart) {
297293

298294
tipElement.css({
@@ -458,6 +454,12 @@
458454
}
459455
}
460456
}
457+
458+
tipElement.removeClass('_hidden');
459+
if (event) {
460+
461+
element.addClass('active');
462+
}
461463
}
462464
, onTooltipHide = function onTooltipHide() {
463465

lib/angular-tooltips.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,7 @@
264264
var tipContElement = element.find('tip-cont')
265265
, tipElement = element.find('tip');
266266

267-
if (event) {
268-
269-
element.addClass('active');
270-
}
271-
272267
tipElement.addClass('_hidden');
273-
274268
if (attrs.tooltipSmart) {
275269

276270
tipElement.css({
@@ -436,7 +430,12 @@
436430
}
437431
}
438432
}
433+
439434
tipElement.removeClass('_hidden');
435+
if (event) {
436+
437+
element.addClass('active');
438+
}
440439
}
441440
, onTooltipHide = function onTooltipHide() {
442441

lib/angular-tooltips.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ $tooltip-medium-transition: .35s;
111111
&._hidden {
112112

113113
display: block;
114-
opacity: 0;
114+
visibility: hidden;
115115
}
116116
}
117117

0 commit comments

Comments
 (0)