ajax_canvas_field 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/canvas_field_helper.rb +1 -1
- data/lib/ajax_canvas_field/rails/version.rb +1 -1
- 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: c7e16a44437f60d13cdc18634cf46037d36db50a
|
4
|
+
data.tar.gz: 4e762257091886e8c51a00be37949fc278dae2eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a4760ba50f3c4f3bd88c9b9a7725d87441776a9c6510d76421c34589598f6c1395bdee62419fa31cba0c6c733e41c0b54941b0f7eb98c45ff30771801a4b204
|
7
|
+
data.tar.gz: 128c22728815460d5a17c5189a99cbc329df4369f28393a230370a21d0f18242a04eee4fa40e6578ec1211c788bedfba0bc0e568e3617cd3abbdabbc6771ecd3
|
@@ -39,7 +39,7 @@ module CanvasFieldHelper
|
|
39
39
|
if options[:half_size]
|
40
40
|
data[:width] = data[:width] / 2
|
41
41
|
data[:height] = data[:height] / 2
|
42
|
-
background += ";
|
42
|
+
background += "; background-size: #{data[:width]}px #{data[:height]}px"
|
43
43
|
end
|
44
44
|
failure_message = 'Your browser does not support the canvas element.'
|
45
45
|
|