Changeset 200718 in webkit


Ignore:
Timestamp:
May 11, 2016, 5:47:07 PM (9 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: Contents of Duration column are covered by always on (legacy) scroll bars
https://bugs.webkit.org/show_bug.cgi?id=157590

Reviewed by Timothy Hatcher.

  • UserInterface/Views/DataGrid.css:

(.data-grid .data-container):
Always show vertical scrollbars.

(.data-grid > .header-wrapper):
(.data-grid > .header-wrapper::-webkit-scrollbar):
Show invisible scrollbar for DataGrid's header to align the header table with the content.

(.data-grid.no-header > .header-wrapper > table.header):
(.data-grid.no-header > table.header): Deleted.
(.data-grid th): Deleted.

  • UserInterface/Views/DataGrid.js:

(WebInspector.DataGrid):
overflow-y: scroll doesn't work on a table element. Wrap table in a div.

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r200716 r200718  
     12016-05-11  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        Web Inspector: Contents of Duration column are covered by always on (legacy) scroll bars
     4        https://bugs.webkit.org/show_bug.cgi?id=157590
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * UserInterface/Views/DataGrid.css:
     9        (.data-grid .data-container):
     10        Always show vertical scrollbars.
     11
     12        (.data-grid > .header-wrapper):
     13        (.data-grid > .header-wrapper::-webkit-scrollbar):
     14        Show invisible scrollbar for DataGrid's header to align the header table with the content.
     15
     16        (.data-grid.no-header > .header-wrapper > table.header):
     17        (.data-grid.no-header > table.header): Deleted.
     18        (.data-grid th): Deleted.
     19        * UserInterface/Views/DataGrid.js:
     20        (WebInspector.DataGrid):
     21        `overflow-y: scroll` doesn't work on a table element. Wrap table in a div.
     22
    1232016-05-11  Matt Baker  <mattbaker@apple.com>
    224
  • trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.css

    r199747 r200718  
    5151    right: 0;
    5252    overflow-x: hidden;
    53     overflow-y: overlay;
     53    overflow-y: scroll;
    5454}
    5555
     
    6262}
    6363
    64 .data-grid.no-header > table.header {
     64.data-grid > .header-wrapper {
     65    border-bottom: 0.5px solid var(--border-color);
     66    overflow-y: scroll;
     67}
     68
     69.data-grid > .header-wrapper::-webkit-scrollbar {
     70    -webkit-appearance: none;
     71}
     72
     73.data-grid.no-header > .header-wrapper > table.header {
    6574    display: none;
    6675}
     
    7584
    7685    background-color: white;
    77 
    78     border-bottom: 0.5px solid var(--border-color);
    7986
    8087    font-weight: normal;
  • trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.js

    r200656 r200718  
    6262        this.element.copyHandler = this;
    6363
     64        this._headerWrapperElement = document.createElement("div");
     65        this._headerWrapperElement.classList.add("header-wrapper");
     66
    6467        this._headerTableElement = document.createElement("table");
    6568        this._headerTableElement.className = "header";
     69        this._headerWrapperElement.appendChild(this._headerTableElement);
     70
    6671        this._headerTableColumnGroupElement = this._headerTableElement.createChild("colgroup");
    6772        this._headerTableBodyElement = this._headerTableElement.createChild("tbody");
     
    104109        this._fillerRowElement = this.dataTableBodyElement.createChild("tr", "filler");
    105110
    106         this.element.appendChild(this._headerTableElement);
     111        this.element.appendChild(this._headerWrapperElement);
    107112        this.element.appendChild(this._scrollContainerElement);
    108113
Note: See TracChangeset for help on using the changeset viewer.