]> git.parisson.com Git - pdf.js.git/commitdiff
One more cosmetic tweak and fix 'make lint' complaints.
authorgigaherz <gigaherz@gmail.com>
Wed, 21 Mar 2012 23:05:24 +0000 (00:05 +0100)
committergigaherz <gigaherz@gmail.com>
Wed, 21 Mar 2012 23:05:24 +0000 (00:05 +0100)
web/viewer.css
web/viewer.js

index eac80da84bdc18476aec7d22d731aee7dddf8c8a..b316ddcb5d8bfaa1bb44d4455af33340db45d0c6 100644 (file)
@@ -400,7 +400,6 @@ canvas {
   display: inline-block;
   border: 1px solid black;
   clear: both;
-  padding: 1px;
   line-height: 0;
 }
 
index b8d7b44f0e9c2702097cc23df8be52fcf9b70203..246577a5278b9d6d75a78f69419e6bf6974d0665 100644 (file)
@@ -32,14 +32,14 @@ var ProgressBar = (function ProgressBarClosure() {
     function clamp(v, min, max) {
         return Math.min(Math.max(v, min), max);
     }
-    
+
     function sizeBar(bar, num, width, height, units) {
         var progress = bar.querySelector('#progress');
         var remaining = bar.querySelector('#remaining');
-        progress.style.height=height + units;
-        remaining.style.height=height + units;
-        progress.style.width=num + units;
-        remaining.style.width=(width - num) + units;
+        progress.style.height = height + units;
+        remaining.style.height = height + units;
+        progress.style.width = num + units;
+        remaining.style.width = (width - num) + units;
     }
 
     function ProgressBar(element, min, max, width, height, units) {
@@ -304,8 +304,10 @@ var PDFView = {
     document.title = this.url = url;
 
     // FIXME: Probably needs a better place to get initialized
-    if(!PDFView.loadingProgress) {
-      PDFView.loadingProgress = new ProgressBar(document.getElementById('loadingBar'), 0, 100, 15, 1.5, 'em');
+    if (!PDFView.loadingProgress) {
+      PDFView.loadingProgress = new ProgressBar(
+            document.getElementById('loadingBar'),
+            0, 100, 15, 1.5, 'em');
     }
 
     var self = this;