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

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

Issue 2680543003: DevTools: Show scrollbars on a small FilteredListWidget (Closed)
Patch Set: Created 3 years, 10 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/Dialog.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Dialog.js b/third_party/WebKit/Source/devtools/front_end/ui/Dialog.js
index 9fa8219f8f064547e590795bc20642e2d6a006fd..664f8208a7346c4ff54cc80779bb548ca52c3954 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Dialog.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Dialog.js
@@ -48,6 +48,7 @@ UI.Dialog = class extends UI.Widget {
this._positionX = null;
/** @type {?number} */
this._positionY = null;
+ this._fixedHeight = true;
/** @type {!Map<!HTMLElement, number>} */
this._tabIndexMap = new Map();
@@ -76,6 +77,7 @@ UI.Dialog = class extends UI.Widget {
this.detach();
event.consume(true);
});
+ this._glassPane.setFixedHeight(this._fixedHeight);
this._glassPane.show();
super.show(this._glassPane.contentElement);
this._glassPane.setContentPosition(this._positionX, this._positionY);
@@ -121,6 +123,13 @@ UI.Dialog = class extends UI.Widget {
}
/**
+ * @param {boolean} fixedHeight
+ */
+ setFixedHeight(fixedHeight) {
+ this._fixedHeight = fixedHeight;
+ }
+
+ /**
* @return {?UI.Size}
*/
_effectiveMaxSize() {

Powered by Google App Engine
This is Rietveld 408576698