Use width and height in template
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 29 Apr 2015 17:38:28 +0000 (13:38 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 29 Apr 2015 17:38:40 +0000 (13:38 -0400)
Set height and width to be from the setting of the prototype being
viewed

views/admin/prototypes/display.html

index 747fa7f..f15c594 100644 (file)
@@ -10,9 +10,9 @@
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     </head>
     <body style="margin:0;padding:0; background: #fff;">
-        <div style="min-width:1400px;min-height:2500px; background: url({$content.prototype}) top center no-repeat; z-index: 10;"></div>
+    <div style="min-width:{$content.width}px;min-height:{$content.height}px; background: url({$content.prototype}) top center no-repeat; z-index: 10;"></div>
         <div style="min-width:100%;min-height:784px; background: url({$content.background}) top left repeat-x; position: absolute; top: 0; z-index: -1;"></div>
     </body>
 </html>
 
-{/if}
\ No newline at end of file
+{/if}