Changeset 223147 in webkit
- Timestamp:
- Oct 10, 2017 2:40:31 PM (7 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r223137 r223147 1 2017-10-10 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Network Tab - Set column initial widths to try allow waterfall column to expand more by default 4 https://bugs.webkit.org/show_bug.cgi?id=178142 5 <rdar://problem/34918233> 6 7 Reviewed by Brian Burg. 8 9 * UserInterface/Views/NetworkTableContentView.js: 10 (WI.NetworkTableContentView.prototype.initialLayout): 11 Provide initial widths for many columns where the max could fit 12 but we'd prefer a smaller than max initial width in wide cases. 13 14 * UserInterface/Views/Table.js: 15 (WI.Table.prototype._resizeColumnsAndFiller): 16 When auto sizing all columns use the preferred initial widths. 17 18 * UserInterface/Views/TableColumn.js: 19 (WI.TableColumn.prototype.get preferredInitialWidth): 20 Save the initial width. 21 1 22 2017-10-10 Ross Kirsling <ross.kirsling@sony.com> 2 23 -
trunk/Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.js
r223065 r223147 478 478 { 479 479 this._nameColumn = new WI.TableColumn("name", WI.UIString("Name"), { 480 initialWidth: this._nameColumnWidthSetting.value,481 480 minWidth: WI.Sidebar.AbsoluteMinimumWidth, 482 481 maxWidth: 500, 482 initialWidth: this._nameColumnWidthSetting.value, 483 483 resizeType: WI.TableColumn.ResizeType.Locked, 484 484 }); … … 489 489 minWidth: 120, 490 490 maxWidth: 200, 491 initialWidth: 150, 491 492 }); 492 493 … … 494 495 minWidth: 70, 495 496 maxWidth: 120, 497 initialWidth: 90, 496 498 }); 497 499 … … 500 502 minWidth: 100, 501 503 maxWidth: 150, 504 initialWidth: 120, 502 505 }); 503 506 … … 506 509 minWidth: 55, 507 510 maxWidth: 80, 511 initialWidth: 65, 508 512 }); 509 513 … … 512 516 minWidth: 55, 513 517 maxWidth: 80, 518 initialWidth: 65, 514 519 }); 515 520 … … 525 530 minWidth: 65, 526 531 maxWidth: 80, 532 initialWidth: 75, 527 533 }); 528 534 … … 531 537 minWidth: 65, 532 538 maxWidth: 80, 539 initialWidth: 70, 533 540 }); 534 541 … … 542 549 minWidth: 50, 543 550 maxWidth: 120, 551 initialWidth: 80, 544 552 align: "right", 545 553 }); … … 549 557 minWidth: 80, 550 558 maxWidth: 100, 559 initialWidth: 80, 551 560 align: "right", 552 561 }); … … 555 564 minWidth: 100, 556 565 maxWidth: 150, 566 initialWidth: 100, 557 567 align: "right", 558 568 }); … … 561 571 minWidth: 65, 562 572 maxWidth: 90, 573 initialWidth: 65, 563 574 align: "right", 564 575 }); -
trunk/Source/WebInspectorUI/UserInterface/Views/Table.js
r223058 r223147 821 821 } 822 822 823 // Best fit with the preferred initial width for flexible columns. 824 bestFit.call(this, (column, width) => { 825 if (!column.preferredInitialWidth || width <= column.preferredInitialWidth) 826 return -1; 827 return column.preferredInitialWidth; 828 }); 829 823 830 // Best fit max size flexible columns. May make more pixels available for other columns. 824 831 bestFit.call(this, (column, width) => { -
trunk/Source/WebInspectorUI/UserInterface/Views/TableColumn.js
r223058 r223147 42 42 this._minWidth = minWidth || 50; 43 43 this._maxWidth = maxWidth || 0; 44 this._initialWidth = initialWidth || NaN; 44 45 this._hidden = hidden || false; 45 46 this._defaultHidden = hidden || false; … … 60 61 get minWidth() { return this._minWidth; } 61 62 get maxWidth() { return this._maxWidth; } 63 get preferredInitialWidth() { return this._initialWidth; } 62 64 get defaultHidden() { return this._defaultHidden; } 63 65 get sortable() { return this._sortable; }
Note: See TracChangeset
for help on using the changeset viewer.