Changeset 199677 in webkit


Ignore:
Timestamp:
Apr 18, 2016, 10:28:38 AM (9 years ago)
Author:
timothy@apple.com
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.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r199676 r199677  
     12016-04-18  Timothy Hatcher  <timothy@apple.com>
     2
     3        Web Inspector: Database query result DataGrids have misaligned header columns
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=156701
     6        rdar://problem/25778310
     7
     8        Reviewed by Brian Burg.
     9
     10        * UserInterface/Views/DataGrid.js:
     11        (WebInspector.DataGrid.prototype.autoSizeColumns): Set the width on the <col> element
     12        for the body table to match the <col> in the header.
     13
    1142016-04-18  Timothy Hatcher  <timothy@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.js

    r198645 r199677  
    428428        }
    429429
    430         for (var [identifier, column] of this.columns)
     430        for (var [identifier, column] of this.columns) {
    431431            column["element"].style.width = widths[identifier] + "%";
     432            column["bodyElement"].style.width = widths[identifier] + "%";
     433        }
     434
    432435        this._columnWidthsInitialized = false;
    433436        this.needsLayout();
Note: See TracChangeset for help on using the changeset viewer.