Improved Archives View layout.

Sun, 21 Jun 2015 20:09:51 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 21 Jun 2015 20:09:51 +0200
changeset 376
a5d215531f55
parent 375
f707d22c72f8
child 377
6570b282eaef

Improved Archives View layout.

www-thermferm/archives.php file | annotate | diff | comparison | revisions
--- a/www-thermferm/archives.php	Sun Jun 21 19:51:58 2015 +0200
+++ b/www-thermferm/archives.php	Sun Jun 21 20:09:51 2015 +0200
@@ -180,7 +180,7 @@
 
     $outstr .= '       $("#print").click(function () {'.PHP_EOL;
     $outstr .= '         var content = $("#fermentor_chart")[0].outerHTML;'.PHP_EOL;
-    $outstr .= '         var newWindow = window.open("", "", "width=750, height=400"),'.PHP_EOL;
+    $outstr .= '         var newWindow = window.open("", "", "width=865, height=425"),'.PHP_EOL;
     $outstr .= '         document = newWindow.document.open(),'.PHP_EOL;
     $outstr .= '         pageContent ='.PHP_EOL;
     $outstr .= '         \'<!DOCTYPE html>\' +'.PHP_EOL;
@@ -209,11 +209,11 @@
     $outstr .= '     });'.PHP_EOL;
     $outstr .= '    </script>'.PHP_EOL;
     $outstr .= '    <div id="fermentor">'.PHP_EOL;
-    $outstr .= '     <div id="fermentor_chart" style="width:720px; height:377px; float:left"></div>'.PHP_EOL;
+    $outstr .= '     <div id="fermentor_chart" style="width:850px; height:410px; float:left"></div>'.PHP_EOL;
     $outstr .= '     <div style="margin-top: 2px; margin-left: 10px;">'.PHP_EOL;
-    $outstr .= '      <input style="float: left; margin-left: 15px;" id="print" type="button" value="Print Graph" />'.PHP_EOL;
-    $outstr .= '      <input style="float: left; margin-left: 15px;" id="pngButton" type="button" value="Save as PNG" />'.PHP_EOL;
-    $outstr .= '      <input style="float: left; margin-left: 15px;" id="pdfButton" type="button" value="Save as PDF" />'.PHP_EOL;
+    $outstr .= '      <input style="float: left; margin-left: 10px;" id="print" type="button" value="Print Graph" />'.PHP_EOL;
+    $outstr .= '      <input style="float: left; margin-left: 10px; margin-top: 10px;" id="pngButton" type="button" value="Save as PNG" />'.PHP_EOL;
+    $outstr .= '      <input style="float: left; margin-left: 10px; margin-top: 10px;" id="pdfButton" type="button" value="Save as PDF" />'.PHP_EOL;
     $outstr .= '     </div>'.PHP_EOL;
     $outstr .= '    </div> <!-- fermentor -->'.PHP_EOL;
 

mercurial