| Index: chrome/browser/resources/file_manager/js/file_manager.js
|
| ===================================================================
|
| --- chrome/browser/resources/file_manager/js/file_manager.js (revision 199675)
|
| +++ chrome/browser/resources/file_manager/js/file_manager.js (working copy)
|
| @@ -860,6 +860,8 @@
|
|
|
| this.filePopup_ = null;
|
|
|
| + this.searchBoxWrapper_ =
|
| + this.dialogDom_.querySelector('.search-box-wrapper');
|
| this.searchBox_ = this.dialogDom_.querySelector('#search-box');
|
| this.searchBox_.addEventListener(
|
| 'input', this.onSearchBoxUpdate_.bind(this));
|
| @@ -1430,6 +1432,10 @@
|
| if (!util.platform.newUI())
|
| this.breadcrumbs_.truncate();
|
|
|
| + // Hide the search box if there is not enough space.
|
| + if (util.platform.newUI())
|
| + this.searchBox_.hidden = this.searchBoxWrapper_.clientWidth < 100;
|
| +
|
| this.searchBreadcrumbs_.truncate();
|
|
|
| this.updateWindowState_();
|
|
|