| Index: third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
|
| index 222d7762ab96ea067766c1d23bdfd214e2faa279..c1ca48c7a456deb43e5bfc3996f0df2d1bb20d3e 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
|
| @@ -237,11 +237,14 @@ WebInspector.ViewportDataGrid.prototype = {
|
| }
|
|
|
| this.setVerticalPadding(viewportState.topPadding, viewportState.bottomPadding);
|
| - var contentFits = viewportState.contentHeight <= clientHeight;
|
| - this.element.classList.toggle("data-grid-fits-viewport", contentFits && viewportState.topPadding + viewportState.bottomPadding === 0);
|
| this._lastScrollTop = scrollTop;
|
| if (scrollTop !== currentScrollTop)
|
| this._scrollContainer.scrollTop = scrollTop;
|
| + var contentFits = viewportState.contentHeight <= clientHeight && viewportState.topPadding + viewportState.bottomPadding === 0;
|
| + if (contentFits !== this.element.classList.contains("data-grid-fits-viewport")) {
|
| + this.element.classList.toggle("data-grid-fits-viewport", contentFits);
|
| + this.updateWidths();
|
| + }
|
| this._visibleNodes = visibleNodes;
|
| },
|
|
|
|
|