1. Arunmozhi P
  2. sitetracker

Commits

Arunmozhi  committed 19747cd

removed static sizes of panel

  • Participants
  • Parent commits afc8589
  • Branches rafel

Comments (0)

Files changed (3)

File data/viewer/viewer.html

View file
         <title>Site Tracker - Visualization Window</title>
     </head>
     <body>
-        <div id="container" style="height:600px; width:800px;">
+        <div id="container" >
         </div>
     </body>
 </html>

File data/viewer/viewer.js

View file
     latest.data.sort(sortTime);
     var today = latest.data.slice(0,9);
     $('#container').empty();
+    $('#container').width = window.innerWidth * 0.8;
+    $('#container').height = window.innerHeight * 0.95;
     /**
      *  The following lines were used for Bluff library and has been kept for
      *  historical reference. Should be deleted once confirmed not required.

File lib/main.js

View file
         ss.storage.trackerdata.splice(0,1);
     });
 
+    // Window dimensions
+    // var panelHeight = window.innerHeight - 20;
+    // var panelWidth = window.innerWidth * 0.6;
+
+
     //Panel to open
     var view = panels.Panel({
-        height: 620,
-        width: 820,
+        // height: panelHeight,
+        // width: panelWidth,
         contentURL: data.url('viewer/viewer.html'),
         contentScriptFile: [data.url('jquery-1.6.2.js'),
                             data.url('raphael.js'),