Changeset 139283 in webkit


Ignore:
Timestamp:
Jan 9, 2013 10:28:45 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: [Network] Data grid header and content cells are misaligned.
https://bugs.webkit.org/show_bug.cgi?id=105795

Patch by Eugene Klyuchnikov <eustas@chromium.org> on 2013-01-09
Reviewed by Pavel Feldman.

Header and content tables have different width -> same percent values
turn to different cell widths.

  • inspector/front-end/DataGrid.js: Add "corner" cell to all rows.
  • inspector/front-end/dataGrid.css: Apply "corner" rules to "td" nodes.

(.data-grid .data-container): Remove artificial padding.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139282 r139283  
     12013-01-09  Eugene Klyuchnikov  <eustas@chromium.org>
     2
     3        Web Inspector: [Network] Data grid header and content cells are misaligned.
     4        https://bugs.webkit.org/show_bug.cgi?id=105795
     5
     6        Reviewed by Pavel Feldman.
     7
     8        Header and content tables have different width -> same percent values
     9        turn to different cell widths.
     10
     11        * inspector/front-end/DataGrid.js: Add "corner" cell to all rows.
     12        * inspector/front-end/dataGrid.css: Apply "corner" rules to "td" nodes.
     13        (.data-grid .data-container): Remove artificial padding.
     14
    1152013-01-09  Tien-Ren Chen  <trchen@chromium.org>
    216
  • trunk/Source/WebCore/inspector/front-end/DataGrid.js

    r134045 r139283  
    116116    columnGroup.span = this._columnCount;
    117117
    118     var cell = document.createElement("th");
    119     cell.className = "corner";
    120     headerRow.appendChild(cell);
     118    headerRow.createChild("th", "corner");
    121119
    122120    this._headerTableColumnGroup = columnGroup;
     
    127125    fillerRow.className = "filler";
    128126
    129     for (var columnIdentifier in columns) {
    130         var column = columns[columnIdentifier];
    131         var td = document.createElement("td");
    132         td.className = columnIdentifier + "-column";
    133         fillerRow.appendChild(td);
    134     }
     127    for (var columnIdentifier in columns)
     128        fillerRow.createChild("td", columnIdentifier + "-column");
     129    fillerRow.createChild("td", "corner");
    135130
    136131    this._dataTableColumnGroup = columnGroup.cloneNode(true);
     
    10701065
    10711066        this.createCells();
     1067        this._element.createChild("td", "corner");
     1068
    10721069        return this._element;
    10731070    },
  • trunk/Source/WebCore/inspector/front-end/dataGrid.css

    r138035 r139283  
    2727    left: 0;
    2828    right: 0;
    29     padding-right: 14px;
    3029    overflow-x: hidden;
    3130    overflow-y: overlay;
     
    4948}
    5049
    51 .data-grid th.corner {
     50.data-grid th.corner,
     51.data-grid td.corner {
    5252    width: 14px;
    5353    padding-right: 0px;
    5454    padding-left: 0px;
    55     border-right: 0 none transparent;
     55    border-right: 0 none transparent !important;
    5656}
    5757
     
    7070    left: 0;
    7171    top: 0;
    72     right: 16px;
     72    right: 0;
    7373    bottom: 0;
    7474    height: 100%;
Note: See TracChangeset for help on using the changeset viewer.