Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js b/third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js |
| index 8b140636b65cf148ae6aad2747d3172e4e5505e4..c13c44fb8ca64cbdbfb1244bbc9451ab5f7a6e6f 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js |
| @@ -38,8 +38,9 @@ UI.EmptyWidget = class extends UI.VBox { |
| constructor(text) { |
| super(); |
| this.registerRequiredCSS('ui/emptyWidget.css'); |
| - this.element.classList.add('empty-view'); |
| - this.textElement = this.element.createChild('h2'); |
| + this.element.classList.add('empty-view-scroller'); |
| + this._panel = this.element.createChild('div', 'empty-view'); |
|
caseq
2017/05/20 00:49:05
panel is a bit overloaded. this._contentElement pe
|
| + this.textElement = this._panel.createChild('h2'); |
| this.textElement.textContent = text; |
| } |
| @@ -47,7 +48,7 @@ UI.EmptyWidget = class extends UI.VBox { |
| * @return {!Element} |
| */ |
| appendParagraph() { |
| - return this.element.createChild('p'); |
| + return this._panel.createChild('p'); |
| } |
| /** |