Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1948)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js

Issue 2878543004: [DevTools] Fix UI.EmptyWidget scrollbars (Closed)
Patch Set: [DevTools] Improve the UI.EmptyWidget scrolling Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..c35c25455e80a81cbaa822afb8f39bd708f504ad 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/EmptyWidget.js
@@ -38,22 +38,23 @@ 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.textElement.textContent = text;
+ this.element.classList.add('empty-view-scroller');
+ this._contentElement = this.element.createChild('div', 'empty-view');
+ this._textElement = this._contentElement.createChild('h2');
+ this._textElement.textContent = text;
}
/**
* @return {!Element}
*/
appendParagraph() {
- return this.element.createChild('p');
+ return this._contentElement.createChild('p');
}
/**
* @param {string} text
*/
set text(text) {
- this.textElement.textContent = text;
+ this._textElement.textContent = text;
}
};

Powered by Google App Engine
This is Rietveld 408576698