add-to-homescreen-rails 2.0.2 → 2.0.3

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.
@@ -2,7 +2,7 @@ module Add
2
2
  module To
3
3
  module Homescreen
4
4
  module Rails
5
- VERSION = "2.0.2"
5
+ VERSION = "2.0.3"
6
6
  end
7
7
  end
8
8
  end
@@ -166,14 +166,15 @@ var addToHome = (function (w) {
166
166
 
167
167
  function show () {
168
168
  var duration,
169
- iPadXShift = 160;
169
+ iPadXShift = 208;
170
170
 
171
171
  // Set the initial position
172
172
  if ( isIPad ) {
173
173
  if ( OSVersion < 5 ) {
174
174
  startY = w.scrollY;
175
175
  startX = w.scrollX;
176
- iPadXShift = 208;
176
+ } else if ( OSVersion < 6 ) {
177
+ iPadXShift = 160;
177
178
  }
178
179
 
179
180
  balloon.style.top = startY + options.bottomOffset + 'px';
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: add-to-homescreen-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-21 00:00:00.000000000 Z
12
+ date: 2012-10-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Provides the 'Add to Home screen' assets for your Rails application.
15
15
  email: