Changeset 49039 in webkit


Ignore:
Timestamp:
Oct 2, 2009 1:09:02 PM (15 years ago)
Author:
Joseph Pecoraro
Message:

2009-10-02 Joseph Pecoraro <Joseph Pecoraro>

Reviewed by Timothy Hatcher.

Database Inspector crashes Safari when table has more than 21 columns
https://bugs.webkit.org/show_bug.cgi?id=29924

  • inspector/front-end/StoragePanel.js: (WebInspector.StoragePanel.prototype.dataGridForResult): adjust the minimum column width percentage to be flexible for many columns.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r49036 r49039  
     12009-10-02  Joseph Pecoraro  <joepeck@webkit.org>
     2
     3        Reviewed by Timothy Hatcher.
     4
     5        Database Inspector crashes Safari when table has more than 21 columns
     6        https://bugs.webkit.org/show_bug.cgi?id=29924
     7
     8        * inspector/front-end/StoragePanel.js:
     9        (WebInspector.StoragePanel.prototype.dataGridForResult): adjust the minimum column width percentage to be flexible for many columns.
     10
    1112009-10-02  Brian Weinstein  <bweinstein@apple.com>
    212
  • trunk/WebCore/inspector/front-end/StoragePanel.js

    r48659 r49039  
    304304
    305305        var columns = {};
     306        var numColumns = 0;
    306307
    307308        var rows = result.rows;
     
    312313
    313314            columns[columnIdentifier] = column;
     315            ++numColumns;
    314316        }
    315317
     
    340342
    341343        // Calculate the percentage width for the columns.
    342         const minimumPrecent = 5;
     344        const minimumPrecent = Math.min(5, Math.floor(100/numColumns));
    343345        var recoupPercent = 0;
    344346        for (var columnIdentifier in columns) {
Note: See TracChangeset for help on using the changeset viewer.