OSDN Git Service

fix: scenario
[pettanr/pettanr.git] / app / models / panel_picture.rb
index 2406f77..bf3463f 100644 (file)
@@ -104,7 +104,9 @@ class PanelPicture < Peta::Element
     o = (spot and spot != self) ? "opacity: #{opacity.to_f/100}; filter:alpha(opacity=#{opacity});" : ''
     self.tag_attributes(:img, {
       :class => "panel-picture", :vPicture => self.id, 
-      :src => self.url, :width => self.width.abs, :height => self.height.abs, :picture_id => self.picture_id, :ext => self.picture.ext, :alt => self.caption, 
+      :src => self.url, :width => self.width.abs, :height => self.height.abs, 
+      :picture_id => self.picture_id, :ext => self.picture.ext, 
+      :alt => self.caption, 
       :style => "#{o}"
     })
   end