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

Unified Diff: third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js

Issue 2693033002: [DevTools] Always issue resize on viewport in FilteredListWidget. (Closed)
Patch Set: contain 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/inspectorCommon.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/quick_open/FilteredListWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js b/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js
index 00e3b286ca2831c544b0ee7c45924b3af0ed831d..bcca3fca150ff07cc0460f0bd2c508f4798bc2dd 100644
--- a/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js
@@ -367,13 +367,7 @@ QuickOpen.FilteredListWidget = class extends UI.VBox {
this._list.replaceAllItems(filteredItems);
if (filteredItems.length)
this._list.selectItem(filteredItems[0]);
-
- var beforeDialogHeight = this._dialog.element.style.height;
- this._dialog.contentResized();
- // If the dialog height changed, the viewport might need to be resized.
- // We use the CSS on the dialog to avoid measuring it directly.
- if (beforeDialogHeight !== this._dialog.element.style.height)
- this._list.viewportResized();
+ this._list.viewportResized();
this._itemsFilteredForTest();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/inspectorCommon.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698