Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| index deac6454853852667200f695e4ae0e922a948e61..6e1937270208f108fcf865c1f1c1b0f33f404b3e 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| @@ -47,6 +47,7 @@ Network.NetworkLogView = class extends UI.VBox { |
| this._networkResourceTypeFiltersSetting = Common.settings.createSetting('networkResourceTypeFilters', {}); |
| this._filterBar = filterBar; |
| + this._rawRowHeight = 0; |
| this._progressBarContainer = progressBarContainer; |
| this._networkLogLargeRowsSetting = networkLogLargeRowsSetting; |
| this._networkLogLargeRowsSetting.addChangeListener(updateRowHeight.bind(this), this); |
| @@ -62,7 +63,8 @@ Network.NetworkLogView = class extends UI.VBox { |
| */ |
| function updateRowHeight() { |
| /** @type {number} */ |
| - this._rowHeight = !!this._networkLogLargeRowsSetting.get() ? 41 : 21; |
| + this._rawRowHeight = !!this._networkLogLargeRowsSetting.get() ? 41 : 21; |
| + this._updateRowHeight(); |
| } |
| updateRowHeight.call(this); |
| @@ -369,6 +371,10 @@ Network.NetworkLogView = class extends UI.VBox { |
| this._invalidateAllItems(); |
| } |
| + _updateRowHeight() { |
| + this._rowHeight = Math.floor(this._rawRowHeight * window.devicePixelRatio) / window.devicePixelRatio; |
| + } |
| + |
| /** |
| * @param {!SDK.NetworkRequest} request |
| * @return {?Network.NetworkRequestNode} |
| @@ -798,6 +804,13 @@ Network.NetworkLogView = class extends UI.VBox { |
| } |
| /** |
| + * @override |
| + */ |
| + onResize() { |
| + this._updateRowHeight(); |
| + } |
| + |
| + /** |
| * @return {!Array<!Network.NetworkNode>} |
| */ |
| flatNodesList() { |
| @@ -931,6 +944,7 @@ Network.NetworkLogView = class extends UI.VBox { |
| this._dataGrid.rootNode().removeChildren(); |
| this._updateSummaryBar(); |
| } |
| + this._dataGrid.setStickToBottom(true); |
|
allada
2017/05/16 22:50:59
Looks like this should be inside the above if. Not
|
| } |
| /** |