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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_manager.js

Issue 481303002: Update the position of autocomplete list after the model is updated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698