OSDN Git Service

fix:balloon edit
[pettanr/pettanr.git] / app / assets / javascripts / pettanr / pettan_imager.js.coffee
index 8eacb89..bb4d938 100644 (file)
@@ -14,8 +14,8 @@ class Pettanr.Imager
     else
       100
     r = if wr < hr
-      [w*wr/100, h*wr/100]
+      [Math.floor(w*wr/100), Math.floor(h*wr/100)]
     else
-      [w*hr/100, h*hr/100]
+      [Math.floor(w*hr/100), Math.floor(h*hr/100)]
     r