awesome_tooltip 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz: '
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08ba51213ce458cd61b326160031394ca78184c2dea2482567a94a0a406423fd'
|
4
|
+
data.tar.gz: 97472fd0c4aa834656859cbcad07f324620d3688ccc1e14fde0fc344769e7544
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c1ab0739c876e399e5d7afcef7dcbd6a777ac50a0491a2de56075ddf1a37453a3d5bb7c7f69b864cf74eaf932686924061c9ad67551b8477c87e78a6f1822b8
|
7
|
+
data.tar.gz: 9f9029f4913dd27b498427b80c9e508d19dcb73207e2b18ba7ea58417668e8bcf9d789004ebc833dff35512cfcb86e1082a905b5dab6984f959e055d4c48b854
|
@@ -72,8 +72,8 @@
|
|
72
72
|
|
73
73
|
if(!leftEnoughSpace || !rightEnoughSpace) {
|
74
74
|
if(W.innerWidth / 2 > elementRects.right) {
|
75
|
-
tooltip.style.cssText = "left:
|
76
|
-
tooltipTriangle.style.cssText = "left: " + (elementRects.right -
|
75
|
+
tooltip.style.cssText = "left: " + (elementRects.right - element.offsetWidth) + "px;";
|
76
|
+
tooltipTriangle.style.cssText = "left: " + (elementRects.right - element.offsetWidth + tooltipTriangle.offsetWidth + tooltipTriangle.offsetWidth / 2) + "px;";
|
77
77
|
} else {
|
78
78
|
tooltip.style.cssText = "right: -" + (D.body.offsetWidth - elementRects.right) + "px;";
|
79
79
|
tooltipTriangle.style.cssText = "right: " + (D.body.offsetWidth - elementRects.right + tooltipTriangle.offsetWidth + tooltipTriangle.offsetWidth / 2) + "px;";
|