[perf-web] Redraw display on window resize/zoom



commit 5bfe63f47c9ff4c61f31c7d6f32144ba2bbd0600
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Sun Jun 29 11:26:59 2014 -0400

    Redraw display on window resize/zoom

 static/main.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/static/main.js b/static/main.js
index 3cd6529..b87761e 100644
--- a/static/main.js
+++ b/static/main.js
@@ -999,6 +999,10 @@ PerfDisplay.prototype.onWindowLoaded = function() {
                                  true);
     }.bind(this));
 
+    $( window ).resize(function() {
+        this.refresh();
+    }.bind(this));
+
     if (this.loadedStartSeconds != null)
         this.refresh();
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]