OSDN Git Service

fix profiler
[pettanr/pettanr.git] / app / models / panel_picture.rb
index e0da3dc..2aa3aff 100644 (file)
@@ -26,7 +26,7 @@ class PanelPicture < Peta::Element
     self.attributes[self.pickup_column_name]
   end
   
-  def attr_y
+  def y
     self.attributes['y']
   end
   
@@ -75,7 +75,7 @@ class PanelPicture < Peta::Element
   end
   
   def opt_div_style
-    "top:#{self.attr_y}px; left:#{self.x}px; z-index:#{self.z}; position: absolute;"
+    "top:#{self.y}px; left:#{self.x}px; z-index:#{self.z}; position: absolute;"
   end
   
   def opt_img_tag spot = nil, opacity = 20