awesome_tooltip 0.1.5 → 0.1.6

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: 797a148e34dd9a929accdd686f18729013fb36c3790f9c9dcc0c8f5981c2ab31
4
- data.tar.gz: d8616edfc05031cbc4637b6e8ab0f49b541d6b8eee1c4695feffc4910d4b7f2a
3
+ metadata.gz: d27f390318b9b90c3f0bfaf3ba557e5794505862aa0ec4f197ae2bc2f1ede003
4
+ data.tar.gz: 4850f277a12711b7b8adbef4167f9f58b83580956a97b5688a68b63a8ad09ac6
5
5
  SHA512:
6
- metadata.gz: e4a25abd8a098d0c5112905b2ce9ff8f2bd8e5df7f5fc4a33e75304f65285ba813693510b016487e23da3b01c629b4e0bbf359f44ee3d2ea2efbd14a8bfd109b
7
- data.tar.gz: ac15097e20390af82148bc360b79a84d9c9c83130fe79b85e8d6f49b058c4443e5d33873f6b4e41ea1721e39f07658d2c5a751abac32a97e24ec6de24b8f0787
6
+ metadata.gz: 128b87a5ff59fabafc54b3635ee066ad8f17dc9817447154516b55bd80dca11bb25a981b1fb51c4b9e34eeae67cefdd89773858cb24af9a319b92dc69873475f
7
+ data.tar.gz: 5b8ad0d1f03b45bd27b76f588c8c38acc0b9f2ebf3fef707ec6259ac5e22a656a6408ab76628afc24ef5d5409054b01775812081df0df3d6a1f0431966de490a
@@ -42,7 +42,7 @@
42
42
  var leftEnoughSpace = tooltip.offsetWidth / 2 + element.offsetWidth / 2 < elementRects.left;
43
43
  var rightEnoughSpace = tooltip.offsetWidth / 2 < D.body.offsetWidth - elementRects.right;
44
44
  var bottomEnoughSpace = tooltip.offsetHeight < W.outerHeight - elementRects.bottom;
45
- var topEnoughSpace = tooltip.offsetHeight < elementRects.top;
45
+ var topEnoughSpace = tooltip.offsetHeight + tooltipTriangle.offsetHeight < elementRects.top;
46
46
 
47
47
  if(leftEnoughSpace && rightEnoughSpace && topEnoughSpace && bottomEnoughSpace) {
48
48
  tooltip.style.cssText = "left: " + ((elementRects.width / 2) - (tooltip.getClientRects()[0].width / 2)) + "px;";
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  &.top {
14
- bottom: calc(100% + 15px);
14
+ bottom: calc(100% + 10px);
15
15
 
16
16
  .content-wrapper .triangle {
17
17
  border-left: 10px solid transparent;
@@ -22,7 +22,7 @@
22
22
  }
23
23
 
24
24
  &.bottom {
25
- top: calc(100% + 15px);
25
+ top: calc(100% + 10px);
26
26
 
27
27
  .content-wrapper .triangle {
28
28
  border-left: 10px solid transparent;
@@ -33,7 +33,7 @@
33
33
  }
34
34
 
35
35
  &.left {
36
- right: calc(100% + 15px);
36
+ right: calc(100% + 10px);
37
37
 
38
38
  .content-wrapper .triangle {
39
39
  border-bottom: 10px solid transparent;
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  &.right {
47
- left: calc(100% + 15px);
47
+ left: calc(100% + 10px);
48
48
 
49
49
  .content-wrapper .triangle {
50
50
  border-bottom: 10px solid transparent;
@@ -1,3 +1,3 @@
1
1
  module AwesomeTooltip
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_tooltip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Busko Bogdan