clipboard-rails 1.5.7 → 1.5.8

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
  SHA1:
3
- metadata.gz: c30348f2136c33b3d837d1d4c515050acdbf9919
4
- data.tar.gz: 5ee1459bb60f84b881859f0aac5b3876d9ce5b43
3
+ metadata.gz: 9b09898597a3af406c28b645857666d716714f35
4
+ data.tar.gz: a455e1a4b57bee0aefe0000506f457a949b8ee6f
5
5
  SHA512:
6
- metadata.gz: fae39e25128f423ae43cc84872a71bb4783ab4497b5f5675bdc4b24d1dd3958b29e85110a04e2771ff588cdfe862ed9c1d2d65c21ea524462adf995223cf6738
7
- data.tar.gz: 81ea2a6a9f0405cd27fae712517018794ed6043e927915f052781ae9dda91b157c7d876d2e1a2757d4ca9c9e107a13f07ae89053b19cbed75791d4d01e3c4d06
6
+ metadata.gz: e368375edd215bbab622fbfc125f9952e784498e811e5df9d221c595c516b344d29e6cae005f5caba18b39c711eced7988c81250f1f0644c6f5ca23ede41b59f
7
+ data.tar.gz: 24848693902f3fa108ff60500cd38f37635b04b4b0e053d208506666249cb3a65980cb2707479e580e243357c57a72fb8d9506148eb08776e2eef23ceb1fa376
@@ -1,5 +1,5 @@
1
1
  module Clipboard
2
2
  module Rails
3
- VERSION = "1.5.7"
3
+ VERSION = "1.5.8"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * clipboard.js v1.5.7
2
+ * clipboard.js v1.5.8
3
3
  * https://zenorocha.github.io/clipboard.js
4
4
  *
5
5
  * Licensed MIT © Zeno Rocha
@@ -432,8 +432,16 @@ var ClipboardAction = (function () {
432
432
  });
433
433
 
434
434
  this.fakeElem = document.createElement('textarea');
435
+ // Prevent zooming on iOS
436
+ this.fakeElem.style.fontSize = '12pt';
437
+ // Reset box model
438
+ this.fakeElem.style.border = '0';
439
+ this.fakeElem.style.padding = '0';
440
+ this.fakeElem.style.margin = '0';
441
+ // Move element out of screen horizontally
435
442
  this.fakeElem.style.position = 'absolute';
436
443
  this.fakeElem.style[isRTL ? 'right' : 'left'] = '-9999px';
444
+ // Move element to the same position vertically
437
445
  this.fakeElem.style.top = (window.pageYOffset || document.documentElement.scrollTop) + 'px';
438
446
  this.fakeElem.setAttribute('readonly', '');
439
447
  this.fakeElem.value = this.text;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clipboard-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.7
4
+ version: 1.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohammed Sadiq
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-03 00:00:00.000000000 Z
11
+ date: 2016-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2
84
+ rubygems_version: 2.5.1
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: ''