crobi 10 år sedan
förälder
incheckning
222fa23b73
2 ändrade filer med 4 tillägg och 4 borttagningar
  1. 2
    2
      generator/components/card-fill.html
  2. 2
    2
      generator/js/card.ts

+ 2
- 2
generator/components/card-fill.html Visa fil

1
 <template id="card-fill">
1
 <template id="card-fill">
2
     <style id="style">
2
     <style id="style">
3
-        :host {flex: 1;}
3
+        :host {width:100%; flex: 1;}
4
     </style>
4
     </style>
5
 
5
 
6
 </template>
6
 </template>
21
 
21
 
22
                 var root = this.shadowRoot;
22
                 var root = this.shadowRoot;
23
                 var style = root.getElementById("style");
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
         proto.createdCallback = function () {
27
         proto.createdCallback = function () {

+ 2
- 2
generator/js/card.ts Visa fil

709
             result += '    background: rgb(204, 204, 204);\n';
709
             result += '    background: rgb(204, 204, 204);\n';
710
             result += '}\n';
710
             result += '}\n';
711
             result += 'card-page {\n';
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
             result += '}\n';
714
             result += '}\n';
715
             result += '@media print {\n';
715
             result += '@media print {\n';
716
             result += '   html, body {\n';
716
             result += '   html, body {\n';

Loading…
Avbryt
Spara