clipboard-rails 1.5.7 → 1.5.8
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.
- checksums.yaml +4 -4
- data/lib/clipboard/rails/version.rb +1 -1
- data/vendor/assets/javascripts/clipboard.js +9 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b09898597a3af406c28b645857666d716714f35
|
4
|
+
data.tar.gz: a455e1a4b57bee0aefe0000506f457a949b8ee6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e368375edd215bbab622fbfc125f9952e784498e811e5df9d221c595c516b344d29e6cae005f5caba18b39c711eced7988c81250f1f0644c6f5ca23ede41b59f
|
7
|
+
data.tar.gz: 24848693902f3fa108ff60500cd38f37635b04b4b0e053d208506666249cb3a65980cb2707479e580e243357c57a72fb8d9506148eb08776e2eef23ceb1fa376
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* clipboard.js v1.5.
|
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.
|
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-
|
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.
|
84
|
+
rubygems_version: 2.5.1
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: ''
|