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

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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/emptyWidget.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
}
/**
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/emptyWidget.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698