2010-09-16 Pavel Feldman <pfeldman@chromium.org>
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Sep 2010 16:24:50 +0000 (16:24 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Sep 2010 16:24:50 +0000 (16:24 +0000)
        Reviewed by Yury Semikhatsky.

        Web Inspector: prevent resource timing popover from having scrollers.
        https://bugs.webkit.org/show_bug.cgi?id=45883

        * inspector/front-end/ResourcesPanel.js:
        (WebInspector.ResourcesPanel.prototype._showPopover):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@67629 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/inspector/front-end/ResourcesPanel.js

index 904ebb4..f50b62d 100644 (file)
@@ -1,3 +1,13 @@
+2010-09-16  Pavel Feldman  <pfeldman@chromium.org>
+
+        Reviewed by Yury Semikhatsky.
+
+        Web Inspector: prevent resource timing popover from having scrollers.
+        https://bugs.webkit.org/show_bug.cgi?id=45883
+
+        * inspector/front-end/ResourcesPanel.js:
+        (WebInspector.ResourcesPanel.prototype._showPopover):
+
 2010-09-15  Philippe Normand  <pnormand@igalia.com>
 
         Reviewed by Eric Carlson.
index afcc3e9..8fa8229 100644 (file)
@@ -859,7 +859,7 @@ WebInspector.ResourcesPanel.prototype = {
 
             var title = document.createElement("span");
             title.className = "resource-timing-bar-title";
-            if (i >= rows.length - 2)
+            if (total - rows[i].end < rows[i].start)
                 title.style.right = (scale * (total - rows[i].end) + 3) + "px";
             else
                 title.style.left = (scale * rows[i].start + 3) + "px";