OSDN Git Service

fix app/views/panels/_standard.html.elb.
authoritozyun <itozyun@gmail.com>
Thu, 9 Aug 2012 13:22:35 +0000 (22:22 +0900)
committeritozyun <itozyun@gmail.com>
Thu, 9 Aug 2012 13:22:35 +0000 (22:22 +0900)
app/views/panels/_standard.html.erb

index cc985e2..117823b 100644 (file)
@@ -1,13 +1,11 @@
 <div class="pettanr-comic-panel" style="width:<%= @panel.width %>px;height:<%= @panel.height %>px;border-width: <%= @panel.border %>px; background-color:white;">
   <% @panel.each_element do |elm| %>
     <% if elm.kind_of?(PanelPicture) %>
-      <div id="vPicture<%= elm.id -%>" class="panel_picture" style="position:relative;  top:<%= elm.y -%>px; left:<%= elm.x -%>px; z-index:<%= elm.z -%>; ">
-        <img style="width:<%= elm.width -%>px; height:<%= elm.height -%>px; " src="<%= elm.url -%>">
-      </div>
+        <img id="vPicture<%= elm.id -%>" width="<%= elm.width -%>" height="<%= elm.height -%>" style="top:<%= elm.y -%>px; left:<%= elm.x -%>px; z-index:<%= elm.z -%>; " src="<%= elm.url -%>">
     <% end %>
     <% if elm.kind_of?(Balloon) %>
-      <div id="vballoon<%= elm.id -%>" class="pettanr-comic-balloon" style="top:<%= elm.y -%>px; left:<%= elm.x -%>px; z-index:<%= elm.z -%>; ">
-        <img style="width:<%= elm.width -%>px; height:<%= elm.height -%>px; " src="<%= elm.system_picture.url -%>">
+      <div id="vballoon<%= elm.id -%>" class="pettanr-comic-balloon" style="width:<%= elm.width -%>px; height:<%= elm.height -%>px; top:<%= elm.y -%>px; left:<%= elm.x -%>px; z-index:<%= elm.z -%>; ">
+        <img src="<%= elm.system_picture.url -%>">
         <% elm.speeches.each do |speech| %>
           <p style="top:<%= speech.y -%>px; left:<%= speech.x -%>px;width:<%= speech.width -%>px; height:<%= speech.height -%>px;">
             <span><%= h speech.content -%></span>