tipsy_svg 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module TipsySvg
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -25,10 +25,9 @@
25
25
  $tip.find('.tipsy-inner')[this.options.html ? 'html' : 'text'](title);
26
26
  $tip[0].className = 'tipsy'; // reset classname in case of dynamic gravity
27
27
  $tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).prependTo(document.body);
28
-
29
- var pos = $.extend({}, this.$element.offset(), {
30
- width: this.$element[0].offsetWidth || 0,
31
- height: this.$element[0].offsetHeight || 0
28
+ var pos = $.extend({}, this.$element.offset(), {
29
+ width: $(this.$element[0]).width() || 0,
30
+ height: $(this.$element[0]).height() || 0
32
31
  });
33
32
 
34
33
  if (typeof this.$element[0].nearestViewportElement == 'object') {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tipsy_svg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-28 00:00:00.000000000Z
12
+ date: 2012-03-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: &70103146533960 !ruby/object:Gem::Requirement
16
+ requirement: &70220187330040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70103146533960
24
+ version_requirements: *70220187330040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70103146533460 !ruby/object:Gem::Requirement
27
+ requirement: &70220187328320 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70103146533460
35
+ version_requirements: *70220187328320
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rails
38
- requirement: &70103146533000 !ruby/object:Gem::Requirement
38
+ requirement: &70220187327400 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '3.1'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70103146533000
46
+ version_requirements: *70220187327400
47
47
  description: ! 'Gem installation for the jquery plugin for nicer tooltips, tipsy. '
48
48
  email:
49
49
  - han@logicallsat.com