Skip to content

Commit 0511b44

Browse files
committed
visiblity:hidden; to display:none;
1 parent 43e0094 commit 0511b44

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
</head>
99
<body class="center-content">
1010
<div class="separator100"></div>
11-
1211
<div class="col6 offset-left2">
1312
<div>
1413
<a class="btn btn-medium bg-info color-white font-bold"
15-
tooltip-delay="400"
16-
tooltips
14+
tooltip-delay="400"
15+
tooltips
16+
tooltip-scroll="true"
1717
tooltip-content="Yeo man!"
1818
tooltip-view="views/index.html"
1919
tooltip-view-ctrl="Ctrl"
2020
tooltip-size="small"
2121
tooltip-side="left"
22-
tooltip-title="hey!" >
22+
tooltip-title="hey!">
2323
Small left
2424
</a>
2525
</div>
@@ -115,7 +115,9 @@
115115
<div class="separator100"></div>
116116
<div style="height:300px; overflow-y:scroll">
117117
<div style="height:600px;">
118-
<a class="btn btn-medium bg-info color-white font-bold" tooltips tooltip-scroll="true" tooltip-content="Yeo man!" tooltip-hide-trigger="click" tooltip-size="medium" tooltip-side="left" title="Title attr"> Scrollable </a>
118+
<a class="btn btn-medium bg-info color-white font-bold" tooltips tooltip-scroll="true" tooltip-content="Yeo man!" tooltip-hide-trigger="click" tooltip-size="medium" tooltip-side="left" title="Title attr">
119+
Scrollable
120+
</a>
119121
</div>
120122
</div>
121123
</div>

src/css/angular-tooltips.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
z-index:9;
66
padding:0.4% 1%;
77
opacity:0;
8-
visibility: hidden;
8+
display:none;
99
-webkit-border-radius:3px;
1010
-moz-border-radius:3px;
1111
border-radius:3px;
12-
left: -200%;
1312
top: 0;
1413
}
1514
._720kb-tooltip-title{

src/js/angular-tooltips.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
, positionInterval
3434
, oldBoundingRect
3535
, title = attr.tooltipTitle || attr.title || ''
36-
, tooltipScroll = attr.tooltipScroll || false
36+
, tooltipScroll = attr.tooltipTry || false
3737
, content = attr.tooltipContent || ''
3838
, html = attr.tooltipHtml || ''
3939
, showTriggers = attr.tooltipShowTrigger || 'mouseover'
@@ -106,7 +106,7 @@
106106

107107
$scope.initTooltip = function initTooltip (tooltipSide) {
108108
if (!$scope.isTooltipEmpty()) {
109-
theTooltip.css('visibility', '');
109+
theTooltip.css('display', 'initial');
110110

111111
height = thisElement[0].offsetHeight;
112112
width = thisElement[0].offsetWidth;
@@ -118,7 +118,7 @@
118118
$scope.parseSpeed();
119119
$scope.tooltipPositioning(tooltipSide);
120120
} else {
121-
theTooltip.css('visibility', 'hidden');
121+
theTooltip.css('display', 'none');
122122
}
123123
};
124124

@@ -196,7 +196,7 @@
196196
};
197197

198198
$scope.hideTooltip = function hideTooltip () {
199-
theTooltip.css('transition', 'opacity ' + speed + 'ms linear, visibility 0s linear ' + speed + 'ms');
199+
theTooltip.css('transition', 'opacity ' + speed + 'ms linear, display 0s linear ' + speed + 'ms');
200200
theTooltip.removeClass(CSS_PREFIX + 'open');
201201
$scope.clearTriggers();
202202
$scope.bindShowTriggers();

0 commit comments

Comments
 (0)