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: '0903d4547f663b3d8afdbb650f7bf7cedc9a71a49801ac5527ef5e95485090a8'
4
- data.tar.gz: 0fb7b48728069b9a60f5898908e5660f6ba815ff6e5acd444755ec47148d405a
3
+ metadata.gz: '08ba51213ce458cd61b326160031394ca78184c2dea2482567a94a0a406423fd'
4
+ data.tar.gz: 97472fd0c4aa834656859cbcad07f324620d3688ccc1e14fde0fc344769e7544
5
5
  SHA512:
6
- metadata.gz: e4063ca8f450284efbb431d7b5165b58a97cb0d8b827d61fc5ae5b29b7bf22b111c0425937d24738a15daf13b2216d6466f0b35c61490749304ff37201076c89
7
- data.tar.gz: 325b26969051fd0eaf3ccd727d1981b39a34bf413afd4e3518d6e0140b3fc7c3810a96d8ca05ab6ae40359609e217f0f1adf1421f01ada6cccccb38152656840
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: -" + (elementRects.right - elementRects.left) + "px;";
76
- tooltipTriangle.style.cssText = "left: " + (elementRects.right - elementRects.left + tooltipTriangle.offsetWidth + tooltipTriangle.offsetWidth / 2) + "px;";
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;";
@@ -1,3 +1,3 @@
1
1
  module AwesomeTooltip
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Busko Bogdan