Index: ui/file_manager/file_manager/foreground/js/file_manager.js |
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js |
index 3ac1db6e7c3c915c9d45f9c9fb964f409bf47289..ea2517eb80fecff296ccc4e398cd4e1e0c215439 100644 |
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js |
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js |
@@ -3549,10 +3549,6 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52; |
if (this.autocompleteSuggestionsBusy_) |
return; |
- // The autocomplete list should be resized and repositioned here as the |
- // search box is resized when it's focused. |
- this.autocompleteList_.syncWidthAndPositionToInput(); |
- |
if (!query) { |
this.autocompleteList_.suggestions = []; |
return; |
@@ -3566,6 +3562,10 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52; |
// Updates only the head item to prevent a flickering on typing. |
this.autocompleteList_.dataModel.splice(0, 1, headerItem); |
+ // The autocomplete list should be resized and repositioned here as the |
+ // search box is resized when it's focused. |
+ this.autocompleteList_.syncWidthAndPositionToInput(); |
+ |
this.autocompleteSuggestionsBusy_ = true; |
var searchParams = { |