michael_hintbuble 1.0.3 → 1.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.
data/.specification CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: michael_hintbuble
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Coroutine
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-10-18 00:00:00 -05:00
20
+ date: 2010-10-19 00:00:00 -05:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -318,8 +318,8 @@ MichaelHintbuble.Bubble.prototype.show = function() {
318
318
  var layout = new Element.Layout(this._element);
319
319
  this._frame.style.top = this._element.style.top;
320
320
  this._frame.style.left = this._element.style.left;
321
- this._frame.style.width = layout.get("width") + "px";
322
- this._frame.style.height = layout.get("height") + "px";
321
+ this._frame.style.width = layout.get("padding-box-width") + "px";
322
+ this._frame.style.height = layout.get("padding-box-height") + "px";
323
323
 
324
324
  new Effect.Appear(this._frame, {
325
325
  duration: 0.2
@@ -318,8 +318,8 @@ MichaelHintbuble.Bubble.prototype.show = function() {
318
318
  var layout = new Element.Layout(this._element);
319
319
  this._frame.style.top = this._element.style.top;
320
320
  this._frame.style.left = this._element.style.left;
321
- this._frame.style.width = layout.get("width") + "px";
322
- this._frame.style.height = layout.get("height") + "px";
321
+ this._frame.style.width = layout.get("padding-box-width") + "px";
322
+ this._frame.style.height = layout.get("padding-box-height") + "px";
323
323
 
324
324
  new Effect.Appear(this._frame, {
325
325
  duration: 0.2
@@ -145,11 +145,10 @@ module Coroutine #:nodoc:
145
145
  js_options = options.reject { |k,v| !bubble_javascript_option_keys.include?(k) }
146
146
 
147
147
  js_options[:position] = "right" if js_options[:position].blank?
148
- js_options[:event_names] = [] if js_options[:event_names].blank?
149
148
 
150
- js_options[:class] = js_options[:class].to_s
149
+ js_options[:event_names] = [] if js_options[:event_names].blank?
151
150
  js_options[:event_names] = js_options[:event_names].uniq.map { |en| en.to_s }
152
- js_options[:event_names] << "mouseover" if js_options[:event_names].empty?
151
+ js_options[:event_names] << "mouseover" if js_options[:event_names].empty?
153
152
 
154
153
  js_options
155
154
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{michael_hintbuble}
8
- s.version = "1.0.3"
8
+ s.version = "1.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Coroutine", "Tim Lowrimore", "John Dugan"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: michael_hintbuble
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Coroutine