Ver código fonte

now it workes in firefox

Juergen 'eTM' Mangler 1 ano atrás
pai
commit
1b01cf3e90
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      template/css/frames.css
  2. 1 1
      template/js/ui.js

+ 1 - 1
template/css/frames.css

@@ -16,7 +16,7 @@ body {
 
 #container {
   display: grid;
-  /*grid-template-rows: repeat(var(--grid-rows), 1fr); not working in Firefox*/
+  grid-template-rows: repeat(var(--grid-rows), 1fr);
   grid-auto-rows: calc(100vh/var(--grid-rows));
   grid-auto-columns: calc(100vw/var(--grid-cols));
   grid-template-columns: repeat(var(--grid-cols), 1fr);

+ 1 - 1
template/js/ui.js

@@ -70,7 +70,7 @@ function makeFrame(lx, ly, rx, ry, content = "", id = "", defaultpara = "", show
         fullurl = fullurl.slice(0, -1);
       }
 
-      $(".item" + lx + "-" + ly).html("<iframe name='" + id +"' id='" + id +"' src='" + fullurl + "' title='' frameBorder='0' ></iframe>");
+      $(".item" + lx + "-" + ly).html("<iframe style='height: 100%; width: 100%' name='" + id +"' id='" + id +"' src='" + fullurl + "' title='' frameBorder='0' ></iframe>");
 
       if(showbutton){
         $(".item" + lx + "-" + ly).append('<button class="formbutton" type="button" onclick="sendForm(\'' + '.item' + lx + '-' + ly +'\', \'' + encodeURIComponent(id) + '\', \'' + lx  + '\', \'' + ly  + '\')">' + showbutton + '</button>')