crobi hace 10 años
padre
commit
222fa23b73
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 2
    2
      generator/components/card-fill.html
  2. 2
    2
      generator/js/card.ts

+ 2
- 2
generator/components/card-fill.html Ver fichero

@@ -1,6 +1,6 @@
1 1
 <template id="card-fill">
2 2
     <style id="style">
3
-        :host {flex: 1;}
3
+        :host {width:100%; flex: 1;}
4 4
     </style>
5 5
 
6 6
 </template>
@@ -21,7 +21,7 @@
21 21
 
22 22
                 var root = this.shadowRoot;
23 23
                 var style = root.getElementById("style");
24
-                style.innerHTML = ":host{flex:"+value+"}"
24
+                style.innerHTML = ":host{width:100%;flex:"+value+"}"
25 25
             }
26 26
         });
27 27
         proto.createdCallback = function () {

+ 2
- 2
generator/js/card.ts Ver fichero

@@ -709,8 +709,8 @@ module RpgCards {
709 709
             result += '    background: rgb(204, 204, 204);\n';
710 710
             result += '}\n';
711 711
             result += 'card-page {\n';
712
-            result += '    width: ' + (page_box.width_px - 2) + 'px;\n';
713
-            result += '    height: ' + (page_box.height_px - 2) + 'px;\n';
712
+            result += '    width: ' + (page_box.width_px) + 'px;\n';
713
+            result += '    height: ' + (page_box.height_px) + 'px;\n';
714 714
             result += '}\n';
715 715
             result += '@media print {\n';
716 716
             result += '   html, body {\n';

Loading…
Cancelar
Guardar