Title: [199677] trunk/Source/WebInspectorUI
Revision
199677
Author
[email protected]
Date
2016-04-18 10:28:38 -0700 (Mon, 18 Apr 2016)

Log Message

Web Inspector: Database query result DataGrids have misaligned header columns

https://bugs.webkit.org/show_bug.cgi?id=156701
rdar://problem/25778310

Reviewed by Brian Burg.

* UserInterface/Views/DataGrid.js:
(WebInspector.DataGrid.prototype.autoSizeColumns): Set the width on the <col> element
for the body table to match the <col> in the header.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (199676 => 199677)


--- trunk/Source/WebInspectorUI/ChangeLog	2016-04-18 17:28:36 UTC (rev 199676)
+++ trunk/Source/WebInspectorUI/ChangeLog	2016-04-18 17:28:38 UTC (rev 199677)
@@ -1,5 +1,18 @@
 2016-04-18  Timothy Hatcher  <[email protected]>
 
+        Web Inspector: Database query result DataGrids have misaligned header columns
+
+        https://bugs.webkit.org/show_bug.cgi?id=156701
+        rdar://problem/25778310
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Views/DataGrid.js:
+        (WebInspector.DataGrid.prototype.autoSizeColumns): Set the width on the <col> element
+        for the body table to match the <col> in the header.
+
+2016-04-18  Timothy Hatcher  <[email protected]>
+
         Web Inspector: Fix the debounce function
 
         https://bugs.webkit.org/show_bug.cgi?id=156696

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.js (199676 => 199677)


--- trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.js	2016-04-18 17:28:36 UTC (rev 199676)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.js	2016-04-18 17:28:38 UTC (rev 199677)
@@ -427,8 +427,11 @@
             }
         }
 
-        for (var [identifier, column] of this.columns)
+        for (var [identifier, column] of this.columns) {
             column["element"].style.width = widths[identifier] + "%";
+            column["bodyElement"].style.width = widths[identifier] + "%";
+        }
+
         this._columnWidthsInitialized = false;
         this.needsLayout();
     }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to