polysize-rails 0.0.5 → 0.0.6
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/polysize-rails/version.rb +1 -1
- data/vendor/assets/javascripts/polysize.js +8 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0dcfad9ec706c683407c395dc7403cad4b33e78
|
4
|
+
data.tar.gz: 1fe3618fa27e8041865fd29467324d0a38bb9f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 638d6691a1ff698492a2469a36e39a5886f3c622891c5383fccbe50f6b2957dade80b74640fa2d8e0910d876e447ebffbdf0ee8e9c4e2bf9d5336d7e16092f09
|
7
|
+
data.tar.gz: a20bdf7e0c727ed9c33d5e1b018d0b178981efe0791e83543616cc8b6095deaf0e3a269d1443c47be7c2daa601cd0f5fb088f62ba96cdbbf2898caf64d3d257e
|
@@ -90,9 +90,9 @@ window.Polysize = (function() {
|
|
90
90
|
"Invalid option `sizing`. Must be a string or array.");
|
91
91
|
}
|
92
92
|
|
93
|
-
switch (typeof(options.
|
93
|
+
switch (typeof(options.offset)) {
|
94
94
|
case 'string':
|
95
|
-
switch (options.
|
95
|
+
switch (options.offset[0]) {
|
96
96
|
case 't':
|
97
97
|
y = 0;
|
98
98
|
break;
|
@@ -104,9 +104,9 @@ window.Polysize = (function() {
|
|
104
104
|
break;
|
105
105
|
default:
|
106
106
|
return alert(
|
107
|
-
"Invalid Polysize `
|
107
|
+
"Invalid Polysize `offset` option.");
|
108
108
|
}
|
109
|
-
switch (options.
|
109
|
+
switch (options.offset[1]) {
|
110
110
|
case 'l':
|
111
111
|
x = 0;
|
112
112
|
break;
|
@@ -118,13 +118,14 @@ window.Polysize = (function() {
|
|
118
118
|
break;
|
119
119
|
default:
|
120
120
|
return alert(
|
121
|
-
"Invalid Polysize `
|
121
|
+
"Invalid Polysize `offset` option.");
|
122
122
|
}
|
123
123
|
break;
|
124
124
|
|
125
125
|
case 'object':
|
126
|
-
|
127
|
-
|
126
|
+
x = options.offset[0];
|
127
|
+
y = options.offset[1];
|
128
|
+
break;
|
128
129
|
|
129
130
|
default:
|
130
131
|
x = (bounds[0] - w) / 2;
|