OSDN Git Service

add: license publisher
[pettanr/pettanr.git] / app / models / speech.rb
index afdc511..24cb701 100644 (file)
@@ -40,8 +40,8 @@ class Speech < Peta::Element
   
   def outer_style
     {
-      'top' => self.y, 'left' => self.x
-      'width' => self.width, 'height' => self.height
+      'top' => self.y.to_s + '%', 'left' => self.x.to_s + '%'
+      'width' => self.width.to_s + '%', 'height' => self.height.to_s + '%'
     }
   end