]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
fixed the width and height of div container of the image -#368
authorMinoo <minoo.ziaei@gmail.com>
Fri, 25 Mar 2011 01:09:19 +0000 (21:09 -0400)
committerMinoo <minoo.ziaei@gmail.com>
Fri, 25 Mar 2011 01:09:19 +0000 (21:09 -0400)
plugins/image/popcorn.image.html
plugins/image/popcorn.image.js

index 168a4e98e9c9e4850aa7089ff4d9a316cbed5fd6..b3059d3221dba801036453f470e23ecfa4d7fb78 100644 (file)
@@ -53,7 +53,9 @@
 
     </video> 
   </div>
-  <div id="imagediv">
-  </div>
+  <div style="width:400px; height:400px">
+    <div id="imagediv"></div>
+  </div>  
+
 </body>
 </html>
index a9065c68dae4ded9ec72c50855cb40bc14dbde59..371d9dc6b60fc33a881e0a6826a901979626e84f 100644 (file)
@@ -60,8 +60,8 @@
         }
         var div = document.createElement( 'div' );
         divStyle = {
-          width : '200px',
-          height : '200px',
+          width : '100%',
+          height : '600px',
           background : "url( " + options.src + " ) no-repeat ",
           backgroundSize : '100%',
           MozBackgroundSize: '100%',